Skip to content

Commit

Permalink
report transcription errors
Browse files Browse the repository at this point in the history
  • Loading branch information
fabio-garavini committed Dec 26, 2024
1 parent ba619a6 commit 995dea1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/openai_whisper_cloud/stt.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ async def async_process_audio_stream(
_LOGGER.debug("TRANSCRIPTION: %s", transcription)

if not transcription:
_LOGGER.error("No transcription received")
_LOGGER.error(response.text)
return SpeechResult("", SpeechResultState.ERROR)

return SpeechResult(transcription, SpeechResultState.SUCCESS)
Expand Down

0 comments on commit 995dea1

Please sign in to comment.