Skip to content

Commit 109a14d

Browse files
committed
Remove [BLANK AUDIO] from output
1 parent b8708e4 commit 109a14d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

wyoming_whisper_api_client/handler.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ async def handle_event(self, event: Event) -> bool:
6767
#_LOGGER.debug(r.json())
6868
text = r.json()['text']
6969

70+
text = text.replace("[BLANK_AUDIO]", "").strip()
71+
7072
_LOGGER.info(text)
7173

7274
await self.write_event(Transcript(text=text).event())

0 commit comments

Comments
 (0)