вывод речи по текстовой области Ткинтера с терминала - PullRequest
0 голосов
/ 24 мая 2019

Я запускаю команду на терминале, и она преобразует речь в реальном времени в текст, но на консоли, и я хочу, чтобы вывод в текстовой области вывод Tkinter

terminal command: python -m speech_recognition

на консоли:

    ALSA lib pcm_dsnoop.c:606:(snd_pcm_dsnoop_open) unable to open slave
    ALSA lib pcm_dmix.c:1029:(snd_pcm_dmix_open) unable to open slave
    ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
    ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
    ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
    ALSA lib pcm_dmix.c:1029:(snd_pcm_dmix_open) unable to open slave
    Cannot connect to server socket err = No such file or directory
    Cannot connect to server request channel
    jack server is not running or cannot be started
    JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for 4294967295, skipping unlock
    JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for 4294967295, skipping unlock
    A moment of silence, please...
    Set minimum energy threshold to 11537.776668595692
    Say something!
    Got it! Now to recognize it...
    Oops! Didn't catch that
    Say something!
    Got it! Now to recognize it...
    Oops! Didn't catch that
    Say something!

, поэтому я попытался,

textarea.insert('end', os.system("python -m speech_recognition")+" ")

, но не получил никакого вывода на textarea

...