openspeechapi 0.5.0__tar.gz → 0.7.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/.gitignore +14 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/PKG-INFO +134 -23
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/README.md +65 -10
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/__init__.py +47 -4
- openspeechapi-0.7.0/openspeechapi/audio_toolkit/__init__.py +9 -0
- openspeechapi-0.7.0/openspeechapi/audio_toolkit/runner.py +110 -0
- openspeechapi-0.7.0/openspeechapi/audio_toolkit/worker.py +49 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/cli.py +47 -5
- openspeechapi-0.7.0/openspeechapi/client/client.py +914 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/config.py +298 -0
- openspeechapi-0.7.0/openspeechapi/core/artifacts.py +74 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/core/base.py +316 -2
- openspeechapi-0.7.0/openspeechapi/core/enums.py +102 -0
- openspeechapi-0.7.0/openspeechapi/core/events.py +74 -0
- openspeechapi-0.7.0/openspeechapi/core/features.py +99 -0
- openspeechapi-0.7.0/openspeechapi/core/jobs.py +363 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/core/model_hub.py +60 -3
- openspeechapi-0.7.0/openspeechapi/core/model_manifests.py +129 -0
- openspeechapi-0.7.0/openspeechapi/core/model_policy.py +18 -0
- openspeechapi-0.7.0/openspeechapi/core/models.py +295 -0
- openspeechapi-0.7.0/openspeechapi/core/realtime.py +491 -0
- openspeechapi-0.7.0/openspeechapi/core/runtime_probe.py +205 -0
- openspeechapi-0.7.0/openspeechapi/core/stream_sessions.py +391 -0
- openspeechapi-0.7.0/openspeechapi/core/transcript_events.py +122 -0
- openspeechapi-0.7.0/openspeechapi/core/tts_quality.py +90 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/dispatch/aim_provision.py +20 -3
- openspeechapi-0.7.0/openspeechapi/dispatch/analysis_pipeline.py +1233 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/dispatch/dispatcher.py +778 -114
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/dispatch/executors/subprocess_exec.py +65 -11
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/dispatch/filters.py +27 -3
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/dispatch/lifecycle.py +129 -38
- openspeechapi-0.7.0/openspeechapi/dispatch/long_recording.py +255 -0
- openspeechapi-0.7.0/openspeechapi/dispatch/long_recording_audio.py +137 -0
- openspeechapi-0.7.0/openspeechapi/dispatch/long_recording_gate.py +26 -0
- openspeechapi-0.7.0/openspeechapi/dispatch/long_recording_vad.py +94 -0
- openspeechapi-0.7.0/openspeechapi/dispatch/speaker_attribution.py +149 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/engine_catalog.py +111 -5
- openspeechapi-0.7.0/openspeechapi/engine_registry.yaml +3905 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/exceptions.py +11 -0
- openspeechapi-0.7.0/openspeechapi/factory.py +1076 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/local_engines/aim_resolver.py +349 -12
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/local_engines/backends/docker_backend.py +11 -2
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/local_engines/backends/native_backend.py +156 -18
- openspeechapi-0.7.0/openspeechapi/local_engines/coqui_model_installer.py +23 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/local_engines/cosyvoice_venv.py +8 -3
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/local_engines/engines/fish_speech.py +4 -1
- openspeechapi-0.7.0/openspeechapi/local_engines/engines/mlx_audio.py +33 -0
- openspeechapi-0.7.0/openspeechapi/local_engines/engines/moshi.py +49 -0
- openspeechapi-0.7.0/openspeechapi/local_engines/engines/openmoss.py +45 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/local_engines/engines/sherpa_onnx.py +7 -2
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/local_engines/engines/whisperlivekit.py +6 -3
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/local_engines/fish_venv.py +51 -5
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/local_engines/manager.py +57 -3
- openspeechapi-0.7.0/openspeechapi/local_engines/mlx_audio_probe.py +203 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/local_engines/models.py +1 -1
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/local_engines/registry.py +6 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/local_engines/task_store.py +4 -1
- openspeechapi-0.7.0/openspeechapi/model_manifests.yaml +895 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/observe/debug.py +1 -1
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/observe/tracing.py +1 -1
- openspeechapi-0.7.0/openspeechapi/providers/alibaba_common.py +118 -0
- openspeechapi-0.7.0/openspeechapi/providers/alibaba_contracts.py +235 -0
- openspeechapi-0.7.0/openspeechapi/providers/analysis/__init__.py +1 -0
- openspeechapi-0.7.0/openspeechapi/providers/analysis/alibaba_tingwu.py +546 -0
- openspeechapi-0.7.0/openspeechapi/providers/analysis/azure_content_understanding.py +311 -0
- openspeechapi-0.7.0/openspeechapi/providers/analysis/cartesia_voice.py +239 -0
- openspeechapi-0.7.0/openspeechapi/providers/analysis/clearer_voice.py +122 -0
- openspeechapi-0.7.0/openspeechapi/providers/analysis/deepgram.py +452 -0
- openspeechapi-0.7.0/openspeechapi/providers/analysis/doubao_minutes.py +389 -0
- openspeechapi-0.7.0/openspeechapi/providers/analysis/doubao_voice.py +194 -0
- openspeechapi-0.7.0/openspeechapi/providers/analysis/elevenlabs.py +468 -0
- openspeechapi-0.7.0/openspeechapi/providers/analysis/gemini.py +155 -0
- openspeechapi-0.7.0/openspeechapi/providers/analysis/iflytek_voice_clone.py +386 -0
- openspeechapi-0.7.0/openspeechapi/providers/analysis/minimax_voice.py +225 -0
- openspeechapi-0.7.0/openspeechapi/providers/analysis/mistral.py +173 -0
- openspeechapi-0.7.0/openspeechapi/providers/analysis/mistral_voice.py +155 -0
- openspeechapi-0.7.0/openspeechapi/providers/analysis/mlx_audio.py +998 -0
- openspeechapi-0.7.0/openspeechapi/providers/analysis/nemotron_diarization.py +627 -0
- openspeechapi-0.7.0/openspeechapi/providers/analysis/openai_compatible.py +325 -0
- openspeechapi-0.7.0/openspeechapi/providers/analysis/pyannote_diarization.py +212 -0
- openspeechapi-0.7.0/openspeechapi/providers/analysis/qwen.py +189 -0
- openspeechapi-0.7.0/openspeechapi/providers/analysis/qwen_voice.py +221 -0
- openspeechapi-0.7.0/openspeechapi/providers/analysis/silero_vad.py +423 -0
- openspeechapi-0.7.0/openspeechapi/providers/analysis/smart_turn.py +232 -0
- openspeechapi-0.7.0/openspeechapi/providers/analysis/smart_turn_features.py +88 -0
- openspeechapi-0.7.0/openspeechapi/providers/analysis/soniox_voice.py +165 -0
- openspeechapi-0.7.0/openspeechapi/providers/assemblyai_contracts.py +375 -0
- openspeechapi-0.7.0/openspeechapi/providers/aws_common.py +39 -0
- openspeechapi-0.7.0/openspeechapi/providers/aws_contracts.py +221 -0
- openspeechapi-0.7.0/openspeechapi/providers/azure_common.py +69 -0
- openspeechapi-0.7.0/openspeechapi/providers/azure_contracts.py +122 -0
- openspeechapi-0.7.0/openspeechapi/providers/baidu_common.py +100 -0
- openspeechapi-0.7.0/openspeechapi/providers/baidu_contracts.py +218 -0
- openspeechapi-0.7.0/openspeechapi/providers/cartesia_common.py +28 -0
- openspeechapi-0.7.0/openspeechapi/providers/cartesia_contracts.py +191 -0
- openspeechapi-0.7.0/openspeechapi/providers/deepgram_common.py +170 -0
- openspeechapi-0.7.0/openspeechapi/providers/deepgram_contracts.py +357 -0
- openspeechapi-0.7.0/openspeechapi/providers/elevenlabs_contracts.py +258 -0
- openspeechapi-0.7.0/openspeechapi/providers/gemini_common.py +110 -0
- openspeechapi-0.7.0/openspeechapi/providers/gemini_contracts.py +108 -0
- openspeechapi-0.7.0/openspeechapi/providers/generation/__init__.py +1 -0
- openspeechapi-0.7.0/openspeechapi/providers/generation/doubao.py +232 -0
- openspeechapi-0.7.0/openspeechapi/providers/generation/elevenlabs.py +177 -0
- openspeechapi-0.7.0/openspeechapi/providers/generation/minimax.py +223 -0
- openspeechapi-0.7.0/openspeechapi/providers/generation/openmoss.py +262 -0
- openspeechapi-0.7.0/openspeechapi/providers/iflytek_common.py +102 -0
- openspeechapi-0.7.0/openspeechapi/providers/iflytek_contracts.py +357 -0
- openspeechapi-0.7.0/openspeechapi/providers/iflytek_voiceprint.py +205 -0
- openspeechapi-0.7.0/openspeechapi/providers/local_contracts.py +1307 -0
- openspeechapi-0.7.0/openspeechapi/providers/minimax_common.py +99 -0
- openspeechapi-0.7.0/openspeechapi/providers/minimax_contracts.py +161 -0
- openspeechapi-0.7.0/openspeechapi/providers/mistral_common.py +53 -0
- openspeechapi-0.7.0/openspeechapi/providers/mistral_contracts.py +230 -0
- openspeechapi-0.7.0/openspeechapi/providers/mlx_audio_common.py +120 -0
- openspeechapi-0.7.0/openspeechapi/providers/openai_contracts.py +215 -0
- openspeechapi-0.7.0/openspeechapi/providers/realtime/__init__.py +1 -0
- openspeechapi-0.7.0/openspeechapi/providers/realtime/assemblyai_agent.py +328 -0
- openspeechapi-0.7.0/openspeechapi/providers/realtime/azure_voice_live.py +111 -0
- openspeechapi-0.7.0/openspeechapi/providers/realtime/deepgram_agent.py +363 -0
- openspeechapi-0.7.0/openspeechapi/providers/realtime/doubao_realtime.py +246 -0
- openspeechapi-0.7.0/openspeechapi/providers/realtime/elevenlabs_agent.py +324 -0
- openspeechapi-0.7.0/openspeechapi/providers/realtime/gemini_live.py +374 -0
- openspeechapi-0.7.0/openspeechapi/providers/realtime/moshi_realtime.py +80 -0
- openspeechapi-0.7.0/openspeechapi/providers/realtime/openai_realtime.py +170 -0
- openspeechapi-0.7.0/openspeechapi/providers/realtime/openai_translation.py +147 -0
- openspeechapi-0.7.0/openspeechapi/providers/realtime/qwen_live_translate.py +199 -0
- openspeechapi-0.7.0/openspeechapi/providers/realtime/qwen_omni_realtime.py +291 -0
- openspeechapi-0.7.0/openspeechapi/providers/realtime/tencent_translation.py +196 -0
- openspeechapi-0.7.0/openspeechapi/providers/soniox_contracts.py +394 -0
- openspeechapi-0.7.0/openspeechapi/providers/speechmatics_contracts.py +92 -0
- openspeechapi-0.7.0/openspeechapi/providers/stt/alibaba.py +716 -0
- openspeechapi-0.7.0/openspeechapi/providers/stt/assemblyai.py +798 -0
- openspeechapi-0.7.0/openspeechapi/providers/stt/assemblyai_short_form.py +333 -0
- openspeechapi-0.7.0/openspeechapi/providers/stt/assemblyai_streaming.py +460 -0
- openspeechapi-0.7.0/openspeechapi/providers/stt/aws_transcribe.py +491 -0
- openspeechapi-0.7.0/openspeechapi/providers/stt/azure_speech.py +293 -0
- openspeechapi-0.7.0/openspeechapi/providers/stt/baidu.py +621 -0
- openspeechapi-0.7.0/openspeechapi/providers/stt/cartesia.py +338 -0
- openspeechapi-0.7.0/openspeechapi/providers/stt/deepgram.py +695 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/providers/stt/dolphin_stt.py +130 -7
- openspeechapi-0.7.0/openspeechapi/providers/stt/doubao.py +389 -0
- openspeechapi-0.7.0/openspeechapi/providers/stt/elevenlabs.py +740 -0
- openspeechapi-0.7.0/openspeechapi/providers/stt/faster_whisper.py +490 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/providers/stt/fireredasr_stt.py +140 -9
- openspeechapi-0.7.0/openspeechapi/providers/stt/funasr_stt.py +528 -0
- openspeechapi-0.7.0/openspeechapi/providers/stt/gemini.py +130 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/providers/stt/gemma4.py +193 -30
- openspeechapi-0.7.0/openspeechapi/providers/stt/google_cloud.py +292 -0
- openspeechapi-0.7.0/openspeechapi/providers/stt/iflytek.py +1308 -0
- openspeechapi-0.7.0/openspeechapi/providers/stt/iflytek_framed.py +953 -0
- openspeechapi-0.7.0/openspeechapi/providers/stt/iflytek_recording.py +890 -0
- openspeechapi-0.7.0/openspeechapi/providers/stt/iflytek_rtasr.py +655 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/providers/stt/macos_speech.py +294 -231
- openspeechapi-0.7.0/openspeechapi/providers/stt/minimax.py +249 -0
- openspeechapi-0.7.0/openspeechapi/providers/stt/mistral.py +409 -0
- openspeechapi-0.7.0/openspeechapi/providers/stt/mlx_audio.py +893 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/providers/stt/mlx_whisper_stt.py +121 -17
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/providers/stt/moonshine_stt.py +47 -4
- openspeechapi-0.7.0/openspeechapi/providers/stt/openai.py +605 -0
- openspeechapi-0.7.0/openspeechapi/providers/stt/paraformer.py +540 -0
- openspeechapi-0.7.0/openspeechapi/providers/stt/parakeet_mlx_stt.py +345 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/providers/stt/qwen3_asr.py +139 -6
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/providers/stt/qwen3_omni_stt.py +7 -15
- openspeechapi-0.7.0/openspeechapi/providers/stt/sensevoice.py +499 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/providers/stt/sherpa_onnx.py +418 -45
- openspeechapi-0.7.0/openspeechapi/providers/stt/soniox.py +792 -0
- openspeechapi-0.7.0/openspeechapi/providers/stt/speechmatics.py +441 -0
- openspeechapi-0.7.0/openspeechapi/providers/stt/tencent.py +723 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/providers/stt/volcengine.py +2 -2
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/providers/stt/vosk_stt.py +183 -20
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/providers/stt/wenet_stt.py +83 -12
- openspeechapi-0.7.0/openspeechapi/providers/stt/whisper.py +502 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/providers/stt/whisperlivekit.py +290 -91
- openspeechapi-0.7.0/openspeechapi/providers/tencent_common.py +166 -0
- openspeechapi-0.7.0/openspeechapi/providers/tencent_contracts.py +126 -0
- openspeechapi-0.7.0/openspeechapi/providers/translation/__init__.py +1 -0
- openspeechapi-0.7.0/openspeechapi/providers/translation/doubao.py +186 -0
- openspeechapi-0.7.0/openspeechapi/providers/translation/gemini.py +146 -0
- openspeechapi-0.7.0/openspeechapi/providers/translation/nllb.py +309 -0
- openspeechapi-0.7.0/openspeechapi/providers/translation/openai_compatible.py +310 -0
- openspeechapi-0.7.0/openspeechapi/providers/translation/qwen.py +170 -0
- openspeechapi-0.7.0/openspeechapi/providers/tts/alibaba.py +514 -0
- openspeechapi-0.7.0/openspeechapi/providers/tts/aws_polly.py +179 -0
- openspeechapi-0.7.0/openspeechapi/providers/tts/azure_speech.py +214 -0
- openspeechapi-0.7.0/openspeechapi/providers/tts/baidu.py +508 -0
- openspeechapi-0.7.0/openspeechapi/providers/tts/cartesia.py +241 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/providers/tts/chatterbox.py +115 -10
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/providers/tts/coqui.py +135 -13
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/providers/tts/cosyvoice.py +379 -40
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/providers/tts/cosyvoice3.py +109 -32
- openspeechapi-0.7.0/openspeechapi/providers/tts/deepgram.py +519 -0
- openspeechapi-0.7.0/openspeechapi/providers/tts/doubao.py +316 -0
- openspeechapi-0.7.0/openspeechapi/providers/tts/elevenlabs.py +647 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/providers/tts/f5_tts.py +13 -4
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/providers/tts/fish_speech.py +139 -14
- openspeechapi-0.7.0/openspeechapi/providers/tts/gemini.py +111 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/providers/tts/google_cloud.py +41 -15
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/providers/tts/iflytek.py +149 -110
- openspeechapi-0.7.0/openspeechapi/providers/tts/iflytek_long.py +417 -0
- openspeechapi-0.7.0/openspeechapi/providers/tts/iflytek_streaming.py +712 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/providers/tts/indextts.py +30 -3
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/providers/tts/kokoro.py +10 -4
- openspeechapi-0.7.0/openspeechapi/providers/tts/minimax.py +415 -0
- openspeechapi-0.7.0/openspeechapi/providers/tts/minimax_long.py +127 -0
- openspeechapi-0.7.0/openspeechapi/providers/tts/mistral.py +238 -0
- openspeechapi-0.7.0/openspeechapi/providers/tts/mlx_audio.py +750 -0
- openspeechapi-0.7.0/openspeechapi/providers/tts/openai.py +257 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/providers/tts/piper.py +2 -0
- openspeechapi-0.7.0/openspeechapi/providers/tts/soniox.py +307 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/providers/tts/spark.py +7 -1
- openspeechapi-0.7.0/openspeechapi/providers/tts/tencent.py +508 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/providers/tts/volcengine.py +3 -3
- openspeechapi-0.7.0/openspeechapi/providers/tts/voxcpm.py +263 -0
- openspeechapi-0.7.0/openspeechapi/providers/volcengine_contracts.py +218 -0
- openspeechapi-0.7.0/openspeechapi/providers/volcengine_protocol.py +191 -0
- openspeechapi-0.7.0/openspeechapi/runtime_environment.py +175 -0
- openspeechapi-0.7.0/openspeechapi/server/analysis_job_runner.py +468 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/server/app.py +128 -6
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/server/auth.py +1 -1
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/server/extras_installer.py +5 -3
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/server/model_downloads.py +427 -17
- openspeechapi-0.7.0/openspeechapi/server/routes/analysis_jobs.py +434 -0
- openspeechapi-0.7.0/openspeechapi/server/routes/analysis_sessions.py +60 -0
- openspeechapi-0.7.0/openspeechapi/server/routes/audio.py +88 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/server/routes/config.py +298 -42
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/server/routes/engine_catalog.py +147 -11
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/server/routes/engine_services.py +5 -5
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/server/routes/engines.py +144 -9
- openspeechapi-0.7.0/openspeechapi/server/routes/iflytek_voiceprint.py +275 -0
- openspeechapi-0.7.0/openspeechapi/server/routes/local_voiceprint.py +284 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/server/routes/models.py +65 -3
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/server/routes/stt.py +286 -19
- openspeechapi-0.7.0/openspeechapi/server/routes/translation.py +107 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/server/routes/tts.py +258 -25
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/server/routes/webui.py +8 -1
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/server/services/config_io.py +56 -25
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/server/services/model_provision.py +28 -14
- openspeechapi-0.7.0/openspeechapi/server/stt_job_runner.py +206 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/server/system_metrics.py +12 -4
- openspeechapi-0.7.0/openspeechapi/server/tts_job_runner.py +219 -0
- openspeechapi-0.7.0/openspeechapi/server/webui/app.js +10459 -0
- openspeechapi-0.7.0/openspeechapi/server/webui/index.html +753 -0
- openspeechapi-0.7.0/openspeechapi/server/webui/styles.css +1713 -0
- openspeechapi-0.7.0/openspeechapi/server/ws/analysis_stream.py +563 -0
- openspeechapi-0.7.0/openspeechapi/server/ws/auth.py +47 -0
- openspeechapi-0.7.0/openspeechapi/server/ws/realtime_stream.py +221 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/server/ws/stt_stream.py +274 -129
- openspeechapi-0.7.0/openspeechapi/server/ws/tts_stream.py +619 -0
- openspeechapi-0.7.0/openspeechapi/state/__init__.py +5 -0
- openspeechapi-0.7.0/openspeechapi/state/local_voiceprints.py +65 -0
- openspeechapi-0.7.0/openspeechapi/state/voiceprint_registry.py +179 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/telemetry/perf.py +0 -1
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/utils/audio_converter.py +3 -2
- openspeechapi-0.7.0/openspeechapi/vendor_registry.yaml +118 -0
- openspeechapi-0.7.0/providers.example.yaml +1060 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/pyproject.toml +84 -25
- openspeechapi-0.7.0/scripts/check_benchmark_baselines.py +73 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/scripts/engines/macos-stt/install.sh +3 -1
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/scripts/engines/macos-stt/macos_stt.swift +22 -0
- openspeechapi-0.7.0/scripts/engines/mlx-audio/native/install.sh +202 -0
- openspeechapi-0.7.0/scripts/engines/mlx-audio/patches/moss-tts-aim-tokenizer.patch +40 -0
- openspeechapi-0.7.0/scripts/engines/mlx-audio/patches/sts-http-endpoint.patch +262 -0
- openspeechapi-0.7.0/scripts/engines/mlx-audio/patches/vibevoice-local-tokenizer.patch +62 -0
- openspeechapi-0.7.0/scripts/engines/mlx-audio/patches/vibevoice-realtime-session.patch +358 -0
- openspeechapi-0.7.0/scripts/engines/mlx-audio/probe.py +26 -0
- openspeechapi-0.7.0/scripts/engines/moshi/native/install.sh +109 -0
- openspeechapi-0.7.0/scripts/engines/moshi/native/run_service.py +362 -0
- openspeechapi-0.7.0/scripts/engines/nemo-speech/native/install.sh +105 -0
- openspeechapi-0.7.0/scripts/engines/openmoss/native/install.sh +55 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/scripts/engines/sherpa-onnx/native/install.sh +2 -2
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/scripts/engines/sherpa-onnx/native/run_streaming_server.py +98 -7
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/scripts/engines/whisperlivekit/native/install.sh +2 -2
- openspeechapi-0.7.0/scripts/tts_quality_eval.py +278 -0
- openspeechapi-0.5.0/openspeechapi/client/client.py +0 -145
- openspeechapi-0.5.0/openspeechapi/core/enums.py +0 -45
- openspeechapi-0.5.0/openspeechapi/core/models.py +0 -112
- openspeechapi-0.5.0/openspeechapi/engine_registry.yaml +0 -676
- openspeechapi-0.5.0/openspeechapi/factory.py +0 -448
- openspeechapi-0.5.0/openspeechapi/providers/stt/alibaba.py +0 -87
- openspeechapi-0.5.0/openspeechapi/providers/stt/assemblyai.py +0 -136
- openspeechapi-0.5.0/openspeechapi/providers/stt/azure_speech.py +0 -99
- openspeechapi-0.5.0/openspeechapi/providers/stt/baidu.py +0 -136
- openspeechapi-0.5.0/openspeechapi/providers/stt/deepgram.py +0 -313
- openspeechapi-0.5.0/openspeechapi/providers/stt/elevenlabs.py +0 -404
- openspeechapi-0.5.0/openspeechapi/providers/stt/faster_whisper.py +0 -247
- openspeechapi-0.5.0/openspeechapi/providers/stt/funasr_stt.py +0 -204
- openspeechapi-0.5.0/openspeechapi/providers/stt/google_cloud.py +0 -106
- openspeechapi-0.5.0/openspeechapi/providers/stt/iflytek.py +0 -682
- openspeechapi-0.5.0/openspeechapi/providers/stt/openai.py +0 -94
- openspeechapi-0.5.0/openspeechapi/providers/stt/paraformer.py +0 -278
- openspeechapi-0.5.0/openspeechapi/providers/stt/parakeet_mlx_stt.py +0 -141
- openspeechapi-0.5.0/openspeechapi/providers/stt/sensevoice.py +0 -287
- openspeechapi-0.5.0/openspeechapi/providers/stt/tencent.py +0 -213
- openspeechapi-0.5.0/openspeechapi/providers/stt/whisper.py +0 -236
- openspeechapi-0.5.0/openspeechapi/providers/tts/alibaba.py +0 -95
- openspeechapi-0.5.0/openspeechapi/providers/tts/azure_speech.py +0 -122
- openspeechapi-0.5.0/openspeechapi/providers/tts/baidu.py +0 -143
- openspeechapi-0.5.0/openspeechapi/providers/tts/deepgram.py +0 -179
- openspeechapi-0.5.0/openspeechapi/providers/tts/elevenlabs.py +0 -335
- openspeechapi-0.5.0/openspeechapi/providers/tts/minimax.py +0 -130
- openspeechapi-0.5.0/openspeechapi/providers/tts/openai.py +0 -105
- openspeechapi-0.5.0/openspeechapi/providers/tts/tencent.py +0 -189
- openspeechapi-0.5.0/openspeechapi/server/webui/app.js +0 -4443
- openspeechapi-0.5.0/openspeechapi/server/webui/index.html +0 -292
- openspeechapi-0.5.0/openspeechapi/server/webui/styles.css +0 -788
- openspeechapi-0.5.0/openspeechapi/server/ws/tts_stream.py +0 -316
- openspeechapi-0.5.0/openspeechapi/vendor_registry.yaml +0 -74
- openspeechapi-0.5.0/providers.example.yaml +0 -267
- openspeechapi-0.5.0/scripts/release.sh +0 -111
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/__main__.py +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/client/__init__.py +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/core/__init__.py +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/core/model_presence.py +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/core/model_profile.py +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/core/registry.py +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/core/settings.py +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/core/voice_presets.py +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/demo.py +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/dispatch/__init__.py +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/dispatch/context.py +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/dispatch/executors/__init__.py +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/dispatch/executors/base.py +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/dispatch/executors/in_process.py +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/dispatch/executors/remote.py +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/dispatch/fanout.py +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/dispatch/watcher.py +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/local_engines/__init__.py +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/local_engines/backends/__init__.py +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/local_engines/base.py +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/local_engines/engines/__init__.py +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/local_engines/engines/faster_whisper.py +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/local_engines/engines/whisper.py +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/local_engines/gemma4_server.py +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/local_engines/indextts_venv.py +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/local_engines/isolated_venv.py +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/local_engines/progress.py +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/local_engines/spark_venv.py +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/local_engines/tasks.py +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/local_engines/venv_common.py +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/local_engines/vllm_gb10_patch.py +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/local_engines/vllm_venv.py +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/logging_config.py +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/observe/__init__.py +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/observe/base.py +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/observe/latency.py +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/observe/metrics.py +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/observe/usage.py +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/providers/__init__.py +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/providers/_template.py +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/providers/stt/__init__.py +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/providers/stt/_local_audio.py +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/providers/stt/canary_qwen_stt.py +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/providers/stt/kimi_audio_stt.py +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/providers/stt/mms_languages.json +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/providers/stt/mms_stt.py +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/providers/stt/phi4_multimodal_stt.py +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/providers/stt/voxtral_stt.py +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/providers/stt/windows_speech.py +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/providers/tts/__init__.py +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/providers/tts/macos_say.py +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/providers/tts/windows_sapi.py +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/server/__init__.py +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/server/middleware.py +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/server/native_installer.py +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/server/routes/__init__.py +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/server/routes/chat.py +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/server/services/__init__.py +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/server/ws/__init__.py +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/telemetry/__init__.py +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/utils/__init__.py +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/openspeechapi/utils/audio_playback.py +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/scripts/aim_adopt.py +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/scripts/aim_consumers.py +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/scripts/engines/cloud/install.sh +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/scripts/engines/faster-whisper/native/install.sh +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/scripts/engines/fish-speech/native/install.sh +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/scripts/engines/macos-stt/_bundle.sh +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/scripts/engines/macos-stt/request_auth.swift +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/scripts/engines/whisper/native/install.sh +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/scripts/gen_mms_languages.py +0 -0
- {openspeechapi-0.5.0 → openspeechapi-0.7.0}/scripts/preload_stt_model.py +0 -0
|
@@ -10,6 +10,8 @@ __pycache__/
|
|
|
10
10
|
.coverage
|
|
11
11
|
dist/
|
|
12
12
|
build/
|
|
13
|
+
.tmp/
|
|
14
|
+
checkpoints/
|
|
13
15
|
*.pyc
|
|
14
16
|
*.pyo
|
|
15
17
|
.DS_Store
|
|
@@ -22,9 +24,21 @@ scripts/engines/macos-stt/Info.plist
|
|
|
22
24
|
|
|
23
25
|
# Runtime logs (structured JSONL + server stdio captures)
|
|
24
26
|
logs/
|
|
27
|
+
log/
|
|
28
|
+
serve.log
|
|
29
|
+
serve-deploy.log
|
|
25
30
|
server_err.log
|
|
26
31
|
server_stdout.log
|
|
27
32
|
server_stderr.log
|
|
28
33
|
|
|
34
|
+
# Local runtime state (download/task persistence)
|
|
35
|
+
.openspeech/
|
|
36
|
+
|
|
29
37
|
# Claude Code project-local config
|
|
30
38
|
.claude/
|
|
39
|
+
|
|
40
|
+
# Personal captures and generated audio
|
|
41
|
+
/aibox-script/
|
|
42
|
+
/aibox-script.tar.gz
|
|
43
|
+
/output.wav
|
|
44
|
+
/output/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: openspeechapi
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.7.0
|
|
4
4
|
Summary: Unified speech interface for STT/TTS providers
|
|
5
5
|
Requires-Python: >=3.11
|
|
6
6
|
Requires-Dist: httpx>=0.27
|
|
@@ -28,6 +28,14 @@ Provides-Extra: assemblyai-stt
|
|
|
28
28
|
Provides-Extra: audio
|
|
29
29
|
Requires-Dist: numpy; extra == 'audio'
|
|
30
30
|
Requires-Dist: sounddevice; extra == 'audio'
|
|
31
|
+
Provides-Extra: aws
|
|
32
|
+
Requires-Dist: amazon-transcribe>=0.6.4; extra == 'aws'
|
|
33
|
+
Requires-Dist: boto3; extra == 'aws'
|
|
34
|
+
Provides-Extra: aws-stt
|
|
35
|
+
Requires-Dist: amazon-transcribe>=0.6.4; extra == 'aws-stt'
|
|
36
|
+
Requires-Dist: boto3; extra == 'aws-stt'
|
|
37
|
+
Provides-Extra: aws-tts
|
|
38
|
+
Requires-Dist: boto3; extra == 'aws-tts'
|
|
31
39
|
Provides-Extra: azure
|
|
32
40
|
Provides-Extra: azure-stt
|
|
33
41
|
Provides-Extra: azure-tts
|
|
@@ -35,23 +43,33 @@ Provides-Extra: baidu
|
|
|
35
43
|
Provides-Extra: baidu-stt
|
|
36
44
|
Provides-Extra: baidu-tts
|
|
37
45
|
Provides-Extra: canary-qwen-stt
|
|
46
|
+
Provides-Extra: cartesia
|
|
47
|
+
Requires-Dist: websockets; extra == 'cartesia'
|
|
48
|
+
Provides-Extra: cartesia-stt
|
|
49
|
+
Requires-Dist: websockets; extra == 'cartesia-stt'
|
|
50
|
+
Provides-Extra: cartesia-tts
|
|
38
51
|
Provides-Extra: chatterbox-tts
|
|
39
|
-
Requires-Dist:
|
|
52
|
+
Requires-Dist: setuptools<81; extra == 'chatterbox-tts'
|
|
40
53
|
Requires-Dist: soundfile; extra == 'chatterbox-tts'
|
|
41
54
|
Provides-Extra: cloud
|
|
42
55
|
Requires-Dist: websockets; extra == 'cloud'
|
|
43
56
|
Provides-Extra: coqui-tts
|
|
44
|
-
Requires-Dist: coqui-tts[codec,cpu]; extra == 'coqui-tts'
|
|
57
|
+
Requires-Dist: coqui-tts[codec,cpu,zh]; extra == 'coqui-tts'
|
|
45
58
|
Provides-Extra: deepgram
|
|
46
59
|
Requires-Dist: websockets; extra == 'deepgram'
|
|
60
|
+
Provides-Extra: deepgram-realtime
|
|
61
|
+
Requires-Dist: websockets; extra == 'deepgram-realtime'
|
|
47
62
|
Provides-Extra: deepgram-stt
|
|
48
63
|
Requires-Dist: websockets; extra == 'deepgram-stt'
|
|
49
64
|
Provides-Extra: deepgram-tts
|
|
65
|
+
Requires-Dist: websockets; extra == 'deepgram-tts'
|
|
50
66
|
Provides-Extra: dev
|
|
51
67
|
Requires-Dist: numpy; extra == 'dev'
|
|
68
|
+
Requires-Dist: playwright<2,>=1.58; extra == 'dev'
|
|
52
69
|
Requires-Dist: pytest-asyncio>=0.24; extra == 'dev'
|
|
53
70
|
Requires-Dist: pytest-cov; extra == 'dev'
|
|
54
71
|
Requires-Dist: pytest-dotenv; extra == 'dev'
|
|
72
|
+
Requires-Dist: pytest-timeout>=2.3; extra == 'dev'
|
|
55
73
|
Requires-Dist: pytest>=8.0; extra == 'dev'
|
|
56
74
|
Requires-Dist: ruff==0.15.*; extra == 'dev'
|
|
57
75
|
Provides-Extra: dolphin-stt
|
|
@@ -64,8 +82,11 @@ Provides-Extra: elevenlabs-stt
|
|
|
64
82
|
Requires-Dist: websockets; extra == 'elevenlabs-stt'
|
|
65
83
|
Provides-Extra: elevenlabs-tts
|
|
66
84
|
Requires-Dist: elevenlabs; extra == 'elevenlabs-tts'
|
|
85
|
+
Provides-Extra: eval
|
|
86
|
+
Requires-Dist: audiobox-aesthetics; extra == 'eval'
|
|
87
|
+
Requires-Dist: soundfile; extra == 'eval'
|
|
67
88
|
Provides-Extra: f5-tts
|
|
68
|
-
Requires-Dist: f5-tts; extra == 'f5-tts'
|
|
89
|
+
Requires-Dist: f5-tts==1.1.22; extra == 'f5-tts'
|
|
69
90
|
Requires-Dist: mlx-whisper; (sys_platform == 'darwin') and extra == 'f5-tts'
|
|
70
91
|
Requires-Dist: soundfile; extra == 'f5-tts'
|
|
71
92
|
Provides-Extra: faster-whisper-stt
|
|
@@ -74,9 +95,11 @@ Provides-Extra: fireredasr-stt
|
|
|
74
95
|
Requires-Dist: fireredasr; extra == 'fireredasr-stt'
|
|
75
96
|
Provides-Extra: fish-speech-tts
|
|
76
97
|
Provides-Extra: funasr-stt
|
|
77
|
-
Requires-Dist: funasr
|
|
78
|
-
Requires-Dist: torch; extra == 'funasr-stt'
|
|
79
|
-
Requires-Dist: torchaudio; extra == 'funasr-stt'
|
|
98
|
+
Requires-Dist: funasr==1.4.16; extra == 'funasr-stt'
|
|
99
|
+
Requires-Dist: torch==2.11.0; extra == 'funasr-stt'
|
|
100
|
+
Requires-Dist: torchaudio==2.11.0; extra == 'funasr-stt'
|
|
101
|
+
Requires-Dist: transformers<5.13,>=4.48; extra == 'funasr-stt'
|
|
102
|
+
Provides-Extra: gemini
|
|
80
103
|
Provides-Extra: gemma4-stt
|
|
81
104
|
Requires-Dist: accelerate; (sys_platform != 'darwin') and extra == 'gemma4-stt'
|
|
82
105
|
Requires-Dist: fastapi; extra == 'gemma4-stt'
|
|
@@ -103,8 +126,19 @@ Provides-Extra: kokoro
|
|
|
103
126
|
Requires-Dist: kokoro>=0.9.2; extra == 'kokoro'
|
|
104
127
|
Requires-Dist: misaki[zh]; extra == 'kokoro'
|
|
105
128
|
Requires-Dist: soundfile; extra == 'kokoro'
|
|
129
|
+
Provides-Extra: local-voiceprint-eres2netv2
|
|
130
|
+
Requires-Dist: modelscope<2,>=1.37; extra == 'local-voiceprint-eres2netv2'
|
|
131
|
+
Requires-Dist: simplejson; extra == 'local-voiceprint-eres2netv2'
|
|
132
|
+
Requires-Dist: sortedcontainers; extra == 'local-voiceprint-eres2netv2'
|
|
133
|
+
Requires-Dist: soundfile; extra == 'local-voiceprint-eres2netv2'
|
|
134
|
+
Requires-Dist: torch; extra == 'local-voiceprint-eres2netv2'
|
|
135
|
+
Requires-Dist: torchaudio; extra == 'local-voiceprint-eres2netv2'
|
|
106
136
|
Provides-Extra: macos-native
|
|
137
|
+
Provides-Extra: minimax
|
|
138
|
+
Requires-Dist: websockets; extra == 'minimax'
|
|
139
|
+
Provides-Extra: minimax-stt
|
|
107
140
|
Provides-Extra: minimax-tts
|
|
141
|
+
Requires-Dist: websockets; extra == 'minimax-tts'
|
|
108
142
|
Provides-Extra: mlx-whisper-stt
|
|
109
143
|
Requires-Dist: mlx-whisper; (sys_platform == 'darwin') and extra == 'mlx-whisper-stt'
|
|
110
144
|
Provides-Extra: mms-stt
|
|
@@ -115,6 +149,10 @@ Provides-Extra: moonshine-stt
|
|
|
115
149
|
Requires-Dist: soundfile; extra == 'moonshine-stt'
|
|
116
150
|
Requires-Dist: torch; extra == 'moonshine-stt'
|
|
117
151
|
Requires-Dist: transformers; extra == 'moonshine-stt'
|
|
152
|
+
Provides-Extra: nllb-translation
|
|
153
|
+
Requires-Dist: sentencepiece; extra == 'nllb-translation'
|
|
154
|
+
Requires-Dist: torch; extra == 'nllb-translation'
|
|
155
|
+
Requires-Dist: transformers<6,>=4.46; extra == 'nllb-translation'
|
|
118
156
|
Provides-Extra: openai
|
|
119
157
|
Requires-Dist: openai; extra == 'openai'
|
|
120
158
|
Provides-Extra: openai-stt
|
|
@@ -122,9 +160,10 @@ Requires-Dist: openai; extra == 'openai-stt'
|
|
|
122
160
|
Provides-Extra: openai-tts
|
|
123
161
|
Requires-Dist: openai; extra == 'openai-tts'
|
|
124
162
|
Provides-Extra: paraformer-stt
|
|
125
|
-
Requires-Dist: funasr
|
|
126
|
-
Requires-Dist: torch; extra == 'paraformer-stt'
|
|
127
|
-
Requires-Dist: torchaudio; extra == 'paraformer-stt'
|
|
163
|
+
Requires-Dist: funasr==1.4.16; extra == 'paraformer-stt'
|
|
164
|
+
Requires-Dist: torch==2.11.0; extra == 'paraformer-stt'
|
|
165
|
+
Requires-Dist: torchaudio==2.11.0; extra == 'paraformer-stt'
|
|
166
|
+
Requires-Dist: transformers<5.13,>=4.48; extra == 'paraformer-stt'
|
|
128
167
|
Provides-Extra: parakeet-stt
|
|
129
168
|
Requires-Dist: parakeet-mlx; (sys_platform == 'darwin') and extra == 'parakeet-stt'
|
|
130
169
|
Provides-Extra: phi4-multimodal-stt
|
|
@@ -139,6 +178,9 @@ Requires-Dist: torchvision; extra == 'phi4-multimodal-stt'
|
|
|
139
178
|
Requires-Dist: transformers; extra == 'phi4-multimodal-stt'
|
|
140
179
|
Provides-Extra: piper-tts
|
|
141
180
|
Requires-Dist: piper-tts; extra == 'piper-tts'
|
|
181
|
+
Provides-Extra: pyannote-diarization
|
|
182
|
+
Requires-Dist: numpy; extra == 'pyannote-diarization'
|
|
183
|
+
Requires-Dist: pyannote-audio<4.1,>=4.0; extra == 'pyannote-diarization'
|
|
142
184
|
Provides-Extra: qwen3-asr-stt
|
|
143
185
|
Requires-Dist: modelscope; extra == 'qwen3-asr-stt'
|
|
144
186
|
Requires-Dist: qwen-asr; extra == 'qwen3-asr-stt'
|
|
@@ -148,17 +190,28 @@ Requires-Dist: qwen-omni-utils; extra == 'qwen3-omni-stt'
|
|
|
148
190
|
Requires-Dist: torch; extra == 'qwen3-omni-stt'
|
|
149
191
|
Requires-Dist: transformers; extra == 'qwen3-omni-stt'
|
|
150
192
|
Provides-Extra: sensevoice-stt
|
|
151
|
-
Requires-Dist: funasr
|
|
152
|
-
Requires-Dist: torch; extra == 'sensevoice-stt'
|
|
153
|
-
Requires-Dist: torchaudio; extra == 'sensevoice-stt'
|
|
193
|
+
Requires-Dist: funasr==1.4.16; extra == 'sensevoice-stt'
|
|
194
|
+
Requires-Dist: torch==2.11.0; extra == 'sensevoice-stt'
|
|
195
|
+
Requires-Dist: torchaudio==2.11.0; extra == 'sensevoice-stt'
|
|
196
|
+
Requires-Dist: transformers<5.13,>=4.48; extra == 'sensevoice-stt'
|
|
154
197
|
Provides-Extra: server
|
|
155
198
|
Requires-Dist: ai-model-manager>=0.2.1; extra == 'server'
|
|
156
199
|
Requires-Dist: fastapi; extra == 'server'
|
|
200
|
+
Requires-Dist: numpy>=1.26; extra == 'server'
|
|
157
201
|
Requires-Dist: python-multipart; extra == 'server'
|
|
158
202
|
Requires-Dist: uvicorn; extra == 'server'
|
|
159
203
|
Requires-Dist: websockets; extra == 'server'
|
|
160
204
|
Provides-Extra: sherpa-onnx-stt
|
|
161
205
|
Requires-Dist: websockets; extra == 'sherpa-onnx-stt'
|
|
206
|
+
Provides-Extra: silero-vad
|
|
207
|
+
Requires-Dist: silero-vad[onnx-cpu]==6.2.3; extra == 'silero-vad'
|
|
208
|
+
Provides-Extra: smart-turn
|
|
209
|
+
Requires-Dist: numpy>=1.26; extra == 'smart-turn'
|
|
210
|
+
Requires-Dist: onnxruntime>=1.18; extra == 'smart-turn'
|
|
211
|
+
Provides-Extra: speechmatics
|
|
212
|
+
Requires-Dist: websockets; extra == 'speechmatics'
|
|
213
|
+
Provides-Extra: speechmatics-stt
|
|
214
|
+
Requires-Dist: websockets; extra == 'speechmatics-stt'
|
|
162
215
|
Provides-Extra: tencent
|
|
163
216
|
Provides-Extra: tencent-stt
|
|
164
217
|
Provides-Extra: tencent-tts
|
|
@@ -171,6 +224,9 @@ Provides-Extra: volcengine-tts
|
|
|
171
224
|
Provides-Extra: vosk-stt
|
|
172
225
|
Requires-Dist: huggingface-hub; extra == 'vosk-stt'
|
|
173
226
|
Requires-Dist: vosk; extra == 'vosk-stt'
|
|
227
|
+
Provides-Extra: voxcpm
|
|
228
|
+
Requires-Dist: soundfile; extra == 'voxcpm'
|
|
229
|
+
Requires-Dist: voxcpm; extra == 'voxcpm'
|
|
174
230
|
Provides-Extra: voxtral-stt
|
|
175
231
|
Requires-Dist: accelerate; extra == 'voxtral-stt'
|
|
176
232
|
Requires-Dist: mistral-common[audio]>=1.8.1; extra == 'voxtral-stt'
|
|
@@ -211,6 +267,12 @@ cd OpenSpeechAPI
|
|
|
211
267
|
uv venv && uv pip install -e ".[server,dev]" # 或 pip install -e ".[server,dev]";按需换 .[all] 等
|
|
212
268
|
```
|
|
213
269
|
|
|
270
|
+
源码 checkout 的标准共享运行环境是项目根目录 `.venv`。即使 shell 当前位于 Conda 或其他
|
|
271
|
+
Python 环境,`openspeechapi` CLI 也会一次性重新进入 `.venv`,确保主服务、普通 subprocess
|
|
272
|
+
Provider 和 Engine Catalog 依赖安装使用同一个解释器。确需保留当前解释器时可设置
|
|
273
|
+
`OSA_DISABLE_AUTO_VENV=1`。通过 PyPI/wheel 安装时没有项目 `.venv`,安装 OSA 的解释器就是
|
|
274
|
+
标准运行环境;声明 `isolated_venv` 的冲突 Provider 仍使用自己的 `~/AI/venvs/<provider>/`。
|
|
275
|
+
|
|
214
276
|
> ⚠️ 纯 `pip install openspeechapi`(核心库)**不含 fastapi/uvicorn**,无法 `serve`;起服务请带 `[server]`。
|
|
215
277
|
> 两种方式启动服务的差异见下方 [启动服务](#启动服务)。
|
|
216
278
|
|
|
@@ -303,6 +365,20 @@ python -m openspeechapi.cli --config providers.yaml serve
|
|
|
303
365
|
> 授权和听写模型下载是 macOS TCC 系统限制,无法自动化,必须每台机器手动执行一次。
|
|
304
366
|
> 详细机制见 [docs/architecture/native-engine-install.md](docs/architecture/native-engine-install.md)。
|
|
305
367
|
|
|
368
|
+
### 部署机(macOS)常驻运行与重启
|
|
369
|
+
|
|
370
|
+
`scripts/restart-osa.sh` 从源码 checkout 重启 macOS 上的常驻服务。直接运行时使用
|
|
371
|
+
仓库的 `.venv` 和 `providers.yaml`,日志写入 `serve.log`,默认绑定 `127.0.0.1:8600`。
|
|
372
|
+
|
|
373
|
+
```bash
|
|
374
|
+
bash scripts/restart-osa.sh
|
|
375
|
+
```
|
|
376
|
+
|
|
377
|
+
将机器专属设置放在 `$XDG_CONFIG_HOME/openspeechapi/restart.env`,未设置 XDG 时使用
|
|
378
|
+
`~/.config/openspeechapi/restart.env`。该文件由 Bash 加载,只放自己信任的配置。
|
|
379
|
+
也可用 `OSA_RESTART_CONFIG` 指向另一个文件。示例与字段说明见
|
|
380
|
+
[本机部署配置](docs/operations/local-restart.md)。
|
|
381
|
+
|
|
306
382
|
## CLI Demo
|
|
307
383
|
|
|
308
384
|
无需写代码,直接在命令行体验:
|
|
@@ -370,7 +446,23 @@ python -m openspeechapi.cli engine start --name whisper --runtime native --fol
|
|
|
370
446
|
python -m openspeechapi.cli engine status --name whisper --runtime native
|
|
371
447
|
```
|
|
372
448
|
|
|
373
|
-
|
|
449
|
+
说明:安装会优先通过 `aim resolve ... --json` 获取模型路径;OSA 不直接解析 AIM 私有配置文件。
|
|
450
|
+
若 AIM 未命中,再回退默认本地路径候选。若仍未找到,可按配置走“模拟下载”流程以验证安装进度。
|
|
451
|
+
|
|
452
|
+
### Audio Toolkit 与推荐配置
|
|
453
|
+
|
|
454
|
+
0.7 开发线增加独立 Translation、Audio Analysis、Pipeline、Realtime/STS 和 mlx-audio 后端。
|
|
455
|
+
这些能力不会自动替换现有 Provider;请按平台、任务和许可显式选择:
|
|
456
|
+
|
|
457
|
+
- [Provider 迁移策略与推荐 Profile](docs/architecture/provider-migration-and-recommended-profiles.md)
|
|
458
|
+
- [模型许可与平台兼容矩阵](docs/architecture/model-license-platform-matrix.md)
|
|
459
|
+
- [Realtime 与本地 Speech-to-Speech](docs/architecture/realtime-speech-to-speech.md)
|
|
460
|
+
- [0.6.x 升级到 0.7](docs/UPGRADING-0.7.md)
|
|
461
|
+
- [0.7.0 发布说明草案](docs/releases/0.7.0-audio-toolkit.md)
|
|
462
|
+
|
|
463
|
+
当前模型状态包括 `researched`、`probed`、`benchmarked` 和 `experimental`;只有满足
|
|
464
|
+
模型来源/许可、AIM、manifest、Provider 测试、UI E2E、实机基准和用户文档全部门槛后才会标记
|
|
465
|
+
`supported`。
|
|
374
466
|
|
|
375
467
|
### Demo 音频播放
|
|
376
468
|
|
|
@@ -415,7 +507,9 @@ python -m openspeechapi.demo tts -t "Hello world" --play \
|
|
|
415
507
|
| `mms` | STT | Meta MMS(Wav2Vec2-CTC,1000+ 语言含 zh/en,按 ISO 639-3 选语言) | subprocess | `pip install -e ".[mms-stt]"` |
|
|
416
508
|
| `openai-tts` | TTS | OpenAI Speech API(云端,支持流式) | remote | `pip install -e ".[openai]"` |
|
|
417
509
|
| `elevenlabs` | TTS | ElevenLabs 高质量语音(云端,支持 HTTP/WS 流式) | remote | `pip install -e ".[elevenlabs-tts]"` |
|
|
418
|
-
| `minimax` | TTS |
|
|
510
|
+
| `minimax` | TTS | MiniMax Speech 2.8/2.6 同步、HTTP/WS 与增量文本流式合成 | remote | `pip install -e ".[minimax]"` |
|
|
511
|
+
| `minimax-long-tts` | TTS | MiniMax 异步长文本合成和持久进度 | remote | `pip install -e ".[minimax]"` |
|
|
512
|
+
| `minimax-stt` | STT | MiniMax 文件转写、说话人、时间戳和字幕 | remote | `pip install -e ".[minimax]"` |
|
|
419
513
|
| `cosyvoice` | TTS | CosyVoice 本地中文语音合成(GPU) | subprocess | 需手动安装 CosyVoice |
|
|
420
514
|
| `fish-speech` | TTS | Fish-Speech 本地多语 TTS + voice clone | local | `pip install -e ".[fish-speech]"` |
|
|
421
515
|
| `piper` | TTS | Piper 轻量级本地 TTS(CPU 即可) | in_process | `pip install -e ".[piper]"` |
|
|
@@ -722,13 +816,18 @@ create_provider("elevenlabs",
|
|
|
722
816
|
```python
|
|
723
817
|
create_provider("minimax",
|
|
724
818
|
api_key="...", # 必填,Minimax API Key
|
|
725
|
-
|
|
726
|
-
model="speech-
|
|
727
|
-
voice_id="
|
|
819
|
+
base_url="https://api.minimax.io",
|
|
820
|
+
model="speech-2.8-turbo", # 当前模型
|
|
821
|
+
voice_id="Chinese (Mandarin)_Reliable_Executive",
|
|
728
822
|
speed=1.0, # 语速
|
|
729
823
|
)
|
|
730
824
|
```
|
|
731
825
|
|
|
826
|
+
MiniMax 还提供 `minimax-stt`、`minimax-long-tts`、`minimax-voice-tools`、
|
|
827
|
+
`minimax-music` 和 `minimax-lyrics`。当前 API 使用 Bearer Key,旧 `group_id`
|
|
828
|
+
仅为配置兼容保留。完整产品范围、参数和 2026 年音乐服务授权边界见
|
|
829
|
+
[MiniMax 产品矩阵](docs/engines/minimax-product-matrix.md)。
|
|
830
|
+
|
|
732
831
|
### `cosyvoice`
|
|
733
832
|
|
|
734
833
|
```python
|
|
@@ -1040,19 +1139,24 @@ server:
|
|
|
1040
1139
|
curl -H "Authorization: Bearer your-key" http://localhost:8600/v1/providers
|
|
1041
1140
|
```
|
|
1042
1141
|
|
|
1043
|
-
WebSocket
|
|
1044
|
-
```
|
|
1045
|
-
|
|
1142
|
+
WebSocket 建连后先发送认证帧,再发送业务数据:
|
|
1143
|
+
```json
|
|
1144
|
+
{"type": "auth", "token": "your-key"}
|
|
1046
1145
|
```
|
|
1047
1146
|
|
|
1048
|
-
|
|
1147
|
+
为兼容旧客户端仍接受 `?token=`,但不建议使用,因为 URL 可能进入代理或访问日志。Web UI
|
|
1148
|
+
可在顶部 API Key 输入框保存 token;Python Client 使用
|
|
1149
|
+
`Client("http://localhost:8600", api_key="your-key")`。
|
|
1150
|
+
|
|
1151
|
+
`/v1/health` 与 `/v1/auth/status` 端点免认证。不配置 `server.auth` 则无认证(开发模式)。
|
|
1152
|
+
当 `auth.enabled: true` 时必须至少配置一个非空 key,否则服务拒绝启动,避免误以为已启用认证。
|
|
1049
1153
|
|
|
1050
1154
|
## 流式 STT
|
|
1051
1155
|
|
|
1052
1156
|
Deepgram 支持实时流式转录:
|
|
1053
1157
|
|
|
1054
1158
|
```python
|
|
1055
|
-
async with Client("http://localhost:8600") as c:
|
|
1159
|
+
async with Client("http://localhost:8600", api_key="your-key") as c:
|
|
1056
1160
|
async def audio_source():
|
|
1057
1161
|
# 从麦克风或文件读取 PCM 音频块
|
|
1058
1162
|
yield pcm_chunk
|
|
@@ -1061,6 +1165,13 @@ async with Client("http://localhost:8600") as c:
|
|
|
1061
1165
|
print(transcription.text)
|
|
1062
1166
|
```
|
|
1063
1167
|
|
|
1168
|
+
TTS 同样支持 WebSocket 流式返回:
|
|
1169
|
+
```python
|
|
1170
|
+
async with Client("http://localhost:8600", api_key="your-key") as c:
|
|
1171
|
+
async for chunk in c.tts.synthesize_stream("elevenlabs_tts", "Hello"):
|
|
1172
|
+
play_or_store(chunk.data)
|
|
1173
|
+
```
|
|
1174
|
+
|
|
1064
1175
|
WebSocket 方式:
|
|
1065
1176
|
```
|
|
1066
1177
|
ws://localhost:8600/v1/stt/stream?provider=deepgram
|
|
@@ -23,6 +23,12 @@ cd OpenSpeechAPI
|
|
|
23
23
|
uv venv && uv pip install -e ".[server,dev]" # 或 pip install -e ".[server,dev]";按需换 .[all] 等
|
|
24
24
|
```
|
|
25
25
|
|
|
26
|
+
源码 checkout 的标准共享运行环境是项目根目录 `.venv`。即使 shell 当前位于 Conda 或其他
|
|
27
|
+
Python 环境,`openspeechapi` CLI 也会一次性重新进入 `.venv`,确保主服务、普通 subprocess
|
|
28
|
+
Provider 和 Engine Catalog 依赖安装使用同一个解释器。确需保留当前解释器时可设置
|
|
29
|
+
`OSA_DISABLE_AUTO_VENV=1`。通过 PyPI/wheel 安装时没有项目 `.venv`,安装 OSA 的解释器就是
|
|
30
|
+
标准运行环境;声明 `isolated_venv` 的冲突 Provider 仍使用自己的 `~/AI/venvs/<provider>/`。
|
|
31
|
+
|
|
26
32
|
> ⚠️ 纯 `pip install openspeechapi`(核心库)**不含 fastapi/uvicorn**,无法 `serve`;起服务请带 `[server]`。
|
|
27
33
|
> 两种方式启动服务的差异见下方 [启动服务](#启动服务)。
|
|
28
34
|
|
|
@@ -115,6 +121,20 @@ python -m openspeechapi.cli --config providers.yaml serve
|
|
|
115
121
|
> 授权和听写模型下载是 macOS TCC 系统限制,无法自动化,必须每台机器手动执行一次。
|
|
116
122
|
> 详细机制见 [docs/architecture/native-engine-install.md](docs/architecture/native-engine-install.md)。
|
|
117
123
|
|
|
124
|
+
### 部署机(macOS)常驻运行与重启
|
|
125
|
+
|
|
126
|
+
`scripts/restart-osa.sh` 从源码 checkout 重启 macOS 上的常驻服务。直接运行时使用
|
|
127
|
+
仓库的 `.venv` 和 `providers.yaml`,日志写入 `serve.log`,默认绑定 `127.0.0.1:8600`。
|
|
128
|
+
|
|
129
|
+
```bash
|
|
130
|
+
bash scripts/restart-osa.sh
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
将机器专属设置放在 `$XDG_CONFIG_HOME/openspeechapi/restart.env`,未设置 XDG 时使用
|
|
134
|
+
`~/.config/openspeechapi/restart.env`。该文件由 Bash 加载,只放自己信任的配置。
|
|
135
|
+
也可用 `OSA_RESTART_CONFIG` 指向另一个文件。示例与字段说明见
|
|
136
|
+
[本机部署配置](docs/operations/local-restart.md)。
|
|
137
|
+
|
|
118
138
|
## CLI Demo
|
|
119
139
|
|
|
120
140
|
无需写代码,直接在命令行体验:
|
|
@@ -182,7 +202,23 @@ python -m openspeechapi.cli engine start --name whisper --runtime native --fol
|
|
|
182
202
|
python -m openspeechapi.cli engine status --name whisper --runtime native
|
|
183
203
|
```
|
|
184
204
|
|
|
185
|
-
|
|
205
|
+
说明:安装会优先通过 `aim resolve ... --json` 获取模型路径;OSA 不直接解析 AIM 私有配置文件。
|
|
206
|
+
若 AIM 未命中,再回退默认本地路径候选。若仍未找到,可按配置走“模拟下载”流程以验证安装进度。
|
|
207
|
+
|
|
208
|
+
### Audio Toolkit 与推荐配置
|
|
209
|
+
|
|
210
|
+
0.7 开发线增加独立 Translation、Audio Analysis、Pipeline、Realtime/STS 和 mlx-audio 后端。
|
|
211
|
+
这些能力不会自动替换现有 Provider;请按平台、任务和许可显式选择:
|
|
212
|
+
|
|
213
|
+
- [Provider 迁移策略与推荐 Profile](docs/architecture/provider-migration-and-recommended-profiles.md)
|
|
214
|
+
- [模型许可与平台兼容矩阵](docs/architecture/model-license-platform-matrix.md)
|
|
215
|
+
- [Realtime 与本地 Speech-to-Speech](docs/architecture/realtime-speech-to-speech.md)
|
|
216
|
+
- [0.6.x 升级到 0.7](docs/UPGRADING-0.7.md)
|
|
217
|
+
- [0.7.0 发布说明草案](docs/releases/0.7.0-audio-toolkit.md)
|
|
218
|
+
|
|
219
|
+
当前模型状态包括 `researched`、`probed`、`benchmarked` 和 `experimental`;只有满足
|
|
220
|
+
模型来源/许可、AIM、manifest、Provider 测试、UI E2E、实机基准和用户文档全部门槛后才会标记
|
|
221
|
+
`supported`。
|
|
186
222
|
|
|
187
223
|
### Demo 音频播放
|
|
188
224
|
|
|
@@ -227,7 +263,9 @@ python -m openspeechapi.demo tts -t "Hello world" --play \
|
|
|
227
263
|
| `mms` | STT | Meta MMS(Wav2Vec2-CTC,1000+ 语言含 zh/en,按 ISO 639-3 选语言) | subprocess | `pip install -e ".[mms-stt]"` |
|
|
228
264
|
| `openai-tts` | TTS | OpenAI Speech API(云端,支持流式) | remote | `pip install -e ".[openai]"` |
|
|
229
265
|
| `elevenlabs` | TTS | ElevenLabs 高质量语音(云端,支持 HTTP/WS 流式) | remote | `pip install -e ".[elevenlabs-tts]"` |
|
|
230
|
-
| `minimax` | TTS |
|
|
266
|
+
| `minimax` | TTS | MiniMax Speech 2.8/2.6 同步、HTTP/WS 与增量文本流式合成 | remote | `pip install -e ".[minimax]"` |
|
|
267
|
+
| `minimax-long-tts` | TTS | MiniMax 异步长文本合成和持久进度 | remote | `pip install -e ".[minimax]"` |
|
|
268
|
+
| `minimax-stt` | STT | MiniMax 文件转写、说话人、时间戳和字幕 | remote | `pip install -e ".[minimax]"` |
|
|
231
269
|
| `cosyvoice` | TTS | CosyVoice 本地中文语音合成(GPU) | subprocess | 需手动安装 CosyVoice |
|
|
232
270
|
| `fish-speech` | TTS | Fish-Speech 本地多语 TTS + voice clone | local | `pip install -e ".[fish-speech]"` |
|
|
233
271
|
| `piper` | TTS | Piper 轻量级本地 TTS(CPU 即可) | in_process | `pip install -e ".[piper]"` |
|
|
@@ -534,13 +572,18 @@ create_provider("elevenlabs",
|
|
|
534
572
|
```python
|
|
535
573
|
create_provider("minimax",
|
|
536
574
|
api_key="...", # 必填,Minimax API Key
|
|
537
|
-
|
|
538
|
-
model="speech-
|
|
539
|
-
voice_id="
|
|
575
|
+
base_url="https://api.minimax.io",
|
|
576
|
+
model="speech-2.8-turbo", # 当前模型
|
|
577
|
+
voice_id="Chinese (Mandarin)_Reliable_Executive",
|
|
540
578
|
speed=1.0, # 语速
|
|
541
579
|
)
|
|
542
580
|
```
|
|
543
581
|
|
|
582
|
+
MiniMax 还提供 `minimax-stt`、`minimax-long-tts`、`minimax-voice-tools`、
|
|
583
|
+
`minimax-music` 和 `minimax-lyrics`。当前 API 使用 Bearer Key,旧 `group_id`
|
|
584
|
+
仅为配置兼容保留。完整产品范围、参数和 2026 年音乐服务授权边界见
|
|
585
|
+
[MiniMax 产品矩阵](docs/engines/minimax-product-matrix.md)。
|
|
586
|
+
|
|
544
587
|
### `cosyvoice`
|
|
545
588
|
|
|
546
589
|
```python
|
|
@@ -852,19 +895,24 @@ server:
|
|
|
852
895
|
curl -H "Authorization: Bearer your-key" http://localhost:8600/v1/providers
|
|
853
896
|
```
|
|
854
897
|
|
|
855
|
-
WebSocket
|
|
856
|
-
```
|
|
857
|
-
|
|
898
|
+
WebSocket 建连后先发送认证帧,再发送业务数据:
|
|
899
|
+
```json
|
|
900
|
+
{"type": "auth", "token": "your-key"}
|
|
858
901
|
```
|
|
859
902
|
|
|
860
|
-
|
|
903
|
+
为兼容旧客户端仍接受 `?token=`,但不建议使用,因为 URL 可能进入代理或访问日志。Web UI
|
|
904
|
+
可在顶部 API Key 输入框保存 token;Python Client 使用
|
|
905
|
+
`Client("http://localhost:8600", api_key="your-key")`。
|
|
906
|
+
|
|
907
|
+
`/v1/health` 与 `/v1/auth/status` 端点免认证。不配置 `server.auth` 则无认证(开发模式)。
|
|
908
|
+
当 `auth.enabled: true` 时必须至少配置一个非空 key,否则服务拒绝启动,避免误以为已启用认证。
|
|
861
909
|
|
|
862
910
|
## 流式 STT
|
|
863
911
|
|
|
864
912
|
Deepgram 支持实时流式转录:
|
|
865
913
|
|
|
866
914
|
```python
|
|
867
|
-
async with Client("http://localhost:8600") as c:
|
|
915
|
+
async with Client("http://localhost:8600", api_key="your-key") as c:
|
|
868
916
|
async def audio_source():
|
|
869
917
|
# 从麦克风或文件读取 PCM 音频块
|
|
870
918
|
yield pcm_chunk
|
|
@@ -873,6 +921,13 @@ async with Client("http://localhost:8600") as c:
|
|
|
873
921
|
print(transcription.text)
|
|
874
922
|
```
|
|
875
923
|
|
|
924
|
+
TTS 同样支持 WebSocket 流式返回:
|
|
925
|
+
```python
|
|
926
|
+
async with Client("http://localhost:8600", api_key="your-key") as c:
|
|
927
|
+
async for chunk in c.tts.synthesize_stream("elevenlabs_tts", "Hello"):
|
|
928
|
+
play_or_store(chunk.data)
|
|
929
|
+
```
|
|
930
|
+
|
|
876
931
|
WebSocket 方式:
|
|
877
932
|
```
|
|
878
933
|
ws://localhost:8600/v1/stt/stream?provider=deepgram
|
|
@@ -12,13 +12,48 @@ except PackageNotFoundError: # running from a raw source tree that was never in
|
|
|
12
12
|
from pathlib import Path
|
|
13
13
|
|
|
14
14
|
from openspeechapi.config import load_config
|
|
15
|
-
from openspeechapi.core.base import
|
|
15
|
+
from openspeechapi.core.base import (
|
|
16
|
+
AudioAnalysisProvider,
|
|
17
|
+
SpeechProvider,
|
|
18
|
+
STTProvider,
|
|
19
|
+
TranslationProvider,
|
|
20
|
+
TTSProvider,
|
|
21
|
+
)
|
|
16
22
|
from openspeechapi.core.enums import AudioFormat, Capability, ExecMode, ProviderType
|
|
17
|
-
from openspeechapi.core.
|
|
23
|
+
from openspeechapi.core.events import StreamEvent, StreamEventType
|
|
24
|
+
from openspeechapi.core.features import FeatureDescriptor, FeatureSupport
|
|
25
|
+
from openspeechapi.core.jobs import JobRecord, JobStatus, JsonJobStore, artifact_cache_key
|
|
26
|
+
from openspeechapi.core.transcript_events import TranscriptEventAdapter
|
|
27
|
+
from openspeechapi.core.models import (
|
|
28
|
+
AnalysisArtifact,
|
|
29
|
+
AnalysisTaskDescriptor,
|
|
30
|
+
AudioAnalysisRequest,
|
|
31
|
+
AudioAnalysisResult,
|
|
32
|
+
AudioChunk,
|
|
33
|
+
AudioData,
|
|
34
|
+
AudioEvent,
|
|
35
|
+
Chapter,
|
|
36
|
+
Entity,
|
|
37
|
+
Provenance,
|
|
38
|
+
Sentiment,
|
|
39
|
+
Speaker,
|
|
40
|
+
STTOptions,
|
|
41
|
+
Transcription,
|
|
42
|
+
TranscriptSegment,
|
|
43
|
+
TranslationRequest,
|
|
44
|
+
TranslationResult,
|
|
45
|
+
TranslationSegment,
|
|
46
|
+
TTSOptions,
|
|
47
|
+
Word,
|
|
48
|
+
)
|
|
18
49
|
from openspeechapi.core.registry import ProviderRegistry
|
|
19
50
|
from openspeechapi.core.settings import BaseSettings
|
|
20
51
|
from openspeechapi.dispatch.context import InvokeContext
|
|
21
52
|
from openspeechapi.dispatch.dispatcher import ServiceDispatcher
|
|
53
|
+
from openspeechapi.dispatch.speaker_attribution import (
|
|
54
|
+
SpeakerAttributionAdapter,
|
|
55
|
+
attribute_transcription_speakers,
|
|
56
|
+
)
|
|
22
57
|
from openspeechapi.client.client import Client
|
|
23
58
|
from openspeechapi.factory import create_default_registry, create_provider, list_providers
|
|
24
59
|
from openspeechapi.logging_config import (
|
|
@@ -66,7 +101,11 @@ def list_configured_engines(
|
|
|
66
101
|
|
|
67
102
|
|
|
68
103
|
__all__ = [
|
|
69
|
-
"
|
|
104
|
+
"AnalysisArtifact", "AnalysisTaskDescriptor", "AudioAnalysisProvider",
|
|
105
|
+
"AudioAnalysisRequest", "AudioAnalysisResult", "AudioChunk", "AudioData", "AudioEvent",
|
|
106
|
+
"AudioFormat", "BaseSettings", "Capability",
|
|
107
|
+
"Chapter", "Entity", "FeatureDescriptor", "FeatureSupport",
|
|
108
|
+
"JobRecord", "JobStatus", "JsonJobStore", "artifact_cache_key",
|
|
70
109
|
"Client", "ConfigError", "Event", "ExecMode", "FanOutAllFailedError", "InvokeContext",
|
|
71
110
|
"PerfTimer",
|
|
72
111
|
"bind_context", "configure_logging", "get_integration_tag", "get_log_settings",
|
|
@@ -76,7 +115,11 @@ __all__ = [
|
|
|
76
115
|
"OpenSpeechError", "ProviderCrashedError", "ProviderError",
|
|
77
116
|
"ProviderNotFoundError", "ProviderRegistry", "ProviderType",
|
|
78
117
|
"ProviderUnavailableError", "STTOptions", "STTProvider", "ServiceDispatcher",
|
|
79
|
-
"
|
|
118
|
+
"Provenance", "Sentiment", "Speaker", "SpeechProvider", "StreamEvent", "StreamEventType",
|
|
119
|
+
"SpeakerAttributionAdapter", "attribute_transcription_speakers",
|
|
120
|
+
"TranscriptSegment", "TranslationProvider", "TranslationRequest", "TranslationResult",
|
|
121
|
+
"TranscriptEventAdapter",
|
|
122
|
+
"TranslationSegment", "TTSOptions", "TTSProvider", "Transcription", "Word",
|
|
80
123
|
"list_output_devices", "play_audio",
|
|
81
124
|
"load_config",
|
|
82
125
|
]
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"""语音工具箱:ClearerVoice 等语音前端处理工具的轻量测试封装。
|
|
2
|
+
|
|
3
|
+
区别于 STT/TTS(语音↔文本),这类工具做**语音→语音 / 语音→多语音**的前端处理(分离/降噪/
|
|
4
|
+
超分/目标说话人提取)。依赖(clearvoice + torch)装在**独立 venv**,OSA 主进程通过 subprocess
|
|
5
|
+
调用(见 runner),不污染主 venv、不进 provider 引擎体系 —— 定位是测试台。
|
|
6
|
+
"""
|
|
7
|
+
from openspeechapi.audio_toolkit.runner import clearvoice_available, clearvoice_python, process
|
|
8
|
+
|
|
9
|
+
__all__ = ["clearvoice_available", "clearvoice_python", "process"]
|