Update helpers.py

sound -> voice
This commit is contained in:
dKosarevsky 2023-03-02 22:28:09 +03:00 committed by GitHub
parent eec8dd86fa
commit d8000a5e86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,7 +42,7 @@ def show_player(ai_content: str, lang_code: str, is_speech_slow: bool) -> None:
sound_file = BytesIO()
tts = gTTS(text=ai_content, lang=lang_code, slow=is_speech_slow)
tts.write_to_fp(sound_file)
st.write("To hear the sound of AI, press the play button.")
st.write("To hear the voice of AI, press the play button.")
st.audio(sound_file)