Skip to content

Commit

Permalink
improve text output format
Browse files Browse the repository at this point in the history
  • Loading branch information
adbenitez committed Mar 22, 2024
1 parent d298003 commit ddda2c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion voice2text_deltabot/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def on_newmsg(bot: Bot, accid: int, event: AttrDict) -> None:
if msg.view_type in (ViewType.VOICE, ViewType.AUDIO):
start = time.time()
segments, info = MODEL.transcribe(msg.file)
text = " ".join(seg.text for seg in segments)
text = "\n".join(seg.text.strip() for seg in segments)
took = time.time() - start
percent = int(info.language_probability * 100)
bot.logger.info(
Expand Down

0 comments on commit ddda2c4

Please sign in to comment.