Fixed Transcript error when receiving the response
This commit is contained in:
@@ -51,7 +51,7 @@ async def _async_transcribe(host: str, port: int, timeout: float, pcm_bytes: byt
|
|||||||
if event is None:
|
if event is None:
|
||||||
break
|
break
|
||||||
|
|
||||||
if Transcript.is_type(event):
|
if Transcript.is_type(event.type):
|
||||||
tr = Transcript.from_event(event)
|
tr = Transcript.from_event(event)
|
||||||
transcript_text = tr.text
|
transcript_text = tr.text
|
||||||
break
|
break
|
||||||
|
|||||||
Reference in New Issue
Block a user