Skip to content

TTS streaming fails #585

Description

@fawzib

i am getting the below error when i use this HA plugin: https://github.com/sfortis/openai_tts/

url i used: http://192.168.1.60:8000/v1/realtime
i tried other urls as well and all failed.


2025-12-08 00:06:25,658:ERROR:speaches.routers.stt:transcription_response_to_http_response:105:Unexpected streaming transcription response type: <class 'openai.types.audio.transcription.Transcription'>
INFO:     192.168.1.236:57820 - "POST /v1/audio/transcriptions HTTP/1.1" 200 OK
INFO:     192.168.1.236:57830 - "POST /v1/realtime HTTP/1.1" 422 Unprocessable Entity
2025-12-08 00:06:43,286:DEBUG:speaches.dependencies:audio_file_dependency:78:Decoding audio file: whisper_audio.wav, content_type: audio/wav, header: Headers({'content-type': 'audio/wav', 'content-disposition': 'form-data; name="file"; filename="whisper_audio.wav"'}), size: 421164
2025-12-08 00:06:43,385:DEBUG:speaches.dependencies:audio_file_dependency:92:Decoded 13.16s of audio in 0.09933s (RTF: 0.007547672342057524)
2025-12-08 00:06:43,385:DEBUG:asyncio:__init__:64:Using selector: EpollSelector
2025-12-08 00:06:43,394:DEBUG:speaches.executors.shared.base_model_manager:load_model:138:silero_vad_v5 model already loaded
2025-12-08 00:06:43,394:DEBUG:speaches.executors.shared.base_model_manager:_increment_ref:83:Incremented ref count for silero_vad_v5, self.ref_count=1
2025-12-08 00:06:43,453:DEBUG:speaches.executors.silero_vad_v5:__call__:135:VAD model inference took 0.0588s
2025-12-08 00:06:43,454:DEBUG:speaches.executors.shared.base_model_manager:_decrement_ref:88:Decremented ref count for silero_vad_v5, self.ref_count=0
2025-12-08 00:06:43,454:INFO:speaches.executors.shared.base_model_manager:_decrement_ref:98:Model silero_vad_v5 is idle, not unloading
2025-12-08 00:06:43,454:DEBUG:speaches.executors.silero_vad_v5:get_speech_timestamps:303:VAD processing took 0.0602s for 13.16s audio
2025-12-08 00:06:43,454:DEBUG:speaches.executors.shared.base_model_manager:load_model:138:Systran/faster-distil-whisper-medium.en model already loaded
2025-12-08 00:06:43,454:DEBUG:speaches.executors.shared.base_model_manager:_increment_ref:81:Model was set to expire in 21600s, cancelling
2025-12-08 00:06:43,454:DEBUG:speaches.executors.shared.base_model_manager:_increment_ref:83:Incremented ref count for Systran/faster-distil-whisper-medium.en, self.ref_count=1
2025-12-08 00:06:43,454:INFO:faster_whisper:transcribe:391:Processing audio with duration 00:13.160
2025-12-08 00:06:43,455:INFO:faster_whisper:transcribe:428:VAD filter removed 00:00.000 of audio
2025-12-08 00:06:43,823:INFO:speaches.executors.whisper:handle_non_streaming_transcription_request:177:Transcribed 13.16 seconds of audio in 0.3682780009985436 seconds
2025-12-08 00:06:43,823:DEBUG:speaches.executors.shared.base_model_manager:_decrement_ref:88:Decremented ref count for Systran/faster-distil-whisper-medium.en, self.ref_count=0
2025-12-08 00:06:43,823:DEBUG:speaches.executors.shared.base_model_manager:_decrement_ref:91:Model Systran/faster-distil-whisper-medium.en is idle, scheduling offload in 21600s
2025-12-08 00:06:43,823:ERROR:speaches.routers.stt:transcription_response_to_http_response:105:Unexpected streaming transcription response type: <class 'openai.types.audio.transcription.Transcription'>
INFO:     192.168.1.236:36448 - "POST /v1/audio/transcriptions HTTP/1.1" 200 OK

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions