speech recognition python - export + trigger in DAT

Hi, I got a script running for Speech Recognition. When I run it in Textport it runs once, and then ends. I would like to either run it continuously or triggered by chop and then export the word into a table/text ( new row for a word ).

See attached image.

Can anyone point a way to do that?
Many thanks

Execute DAT and then put all your code inside of the frame start callback, will make it run every frame. Make sure you turn on the parameter toggle for the frameStart callback in the parameters of Execute DAT.

Or use CHOP Execute DAT, reference a Null CHOP in it’s parameters, then put all your code into the offToOn callback. Same as above, make sure you turn on the correct toggle in the parameters.

How does it work in the case of bypass flag? I put just the script in a excute dat:

level = op('select1')['chan1']

op('reorder1').bypass = level

I miss there probably something? Just startet with python :wink:

Hey just wondering for the speech_recognition library

Did you have to install PyAudio to get microphone input? or is there a way to access Touch’s Audio Device In CHOP and use that as the source?

I’m new at Python and python in Touch :laughing:

How would you pipe in a AudioDevice in into your script?
Do you havew so send the audio wave ?