Skip to content

Commit

Permalink
Enabled auto-punctuation
Browse files Browse the repository at this point in the history
  • Loading branch information
graynk committed Feb 23, 2021
1 parent c24dc07 commit 1cca213
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def voice_to_text(update: Update, context: CallbackContext) -> None:
config = speech.RecognitionConfig(
encoding=speech.RecognitionConfig.AudioEncoding.OGG_OPUS,
sample_rate_hertz=media_info.audio_tracks[0].sampling_rate,
enable_automatic_punctuation=True,
language_code='ru-RU')

update.effective_message.reply_chat_action(action=ChatAction.TYPING)
Expand Down

0 comments on commit 1cca213

Please sign in to comment.