Mircophone access
Hey commuinty /emoticons/default_smile.png' srcset='/emoticons/smile@2x.png 2x' title=':)' width='20' />
last night I got the idea of creating a guitar tuner using activate /emoticons/default_wink.png' srcset='/emoticons/wink@2x.png 2x' title=';)' width='20' />
Now I am curious if there is a way to get microphone access using the OML language.
If not, i am sure there is a way by using Python language.
Basically I just need to record an audio sequence and process it with my future activate model.
Is there a way to interrupt the the process for recording? I will put that question in a new topic /emoticons/default_wink.png' srcset='/emoticons/wink@2x.png 2x' title=';)' width='20' />
best regards
Nils
Answers
-
I've used pyaudio in the past to create .wav files, which is a package that is able to input/output audio.
Steps to install the package:
- Open the command window (cmd) as Administrator
- Type cd C:\<Compose_installation_folder>\common\python\python3.5\win64
- Type python.exe -m pip install pyaudio
There are some examples at GitHub:
https://gist.github.com/mabdrabo/8678538
https://gist.github.com/fopina/3cefaed1b2d2d79984ad7894aef39a68
And pyaudio documentation is at https://people.csail.mit.edu/hubert/pyaudio/docs/ - the class stream probably achieves what you are looking for.
Regards,
Roberta
0 - Open the command window (cmd) as Administrator