Не подтверждена Коммит 32c7301f создал по автору Yaroslav's avatar Yaroslav Зафиксировано автором GitHub
Просмотр файлов

Update spr2.py

владелец 4b15b7d8
......@@ -30,6 +30,9 @@ def record_audio(sec: int = seconds) -> None:
def recognize_voice(lang: str = "en") -> str:
"""
The function that converts a file to text
"""
file = sr.AudioFile('out.wav') # up file to cache
with file as source: # open file to flow
# clean up the noise
......
Поддерживает Markdown
0% или .
You are about to add 0 people to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Пожалуйста, зарегистрируйтесь или чтобы прокомментировать