| 81 | } |
| 82 | |
| 83 | std::vector<std::vector<std::pair<std::string, float>>> |
| 84 | detect_language(const StorageView& features) { |
| 85 | std::shared_lock lock(_mutex); |
| 86 | assert_model_is_ready(); |
| 87 | auto futures = _pool->detect_language(features); |
| 88 | return wait_on_futures(std::move(futures)); |
| 89 | } |
| 90 | |
| 91 | std::vector<models::WhisperAlignmentResult> |
| 92 | align(const StorageView& features, |