Сохранение результатов распознавания речи в Excel + Добавление вывода - PullRequest
0 голосов
/ 30 января 2020

Я пытаюсь сохранить вывод Speak Anything в формате Excel, CSV или TXT или json.

import speech_recognition as sr
import pyaudio

r = sr.Recognizer()

with sr.Microphone() as source:
    print('Speak Anything: ')
    audio = r.listen(source)

    try:
        text = r.recognize_google(audio)
        print('You said:{}'.format(text))
    except:
        print('Sorry could not recognize what you said')

ссылка: http://codepad.org/6huZeZLB

...