Kivy doenst support audio recording at all. If you use third-party, then
you need to be sure it would work on all platforms you're targeting.
Since python on android is still "new", you might have difficulties to
do it:
- check or work on pyaudio for supporting android platform
- check gstreamer for android, but from what i seen, audio can be only
played
(http://cgit.freedesktop.org/gstreamer/gst-android/tree/sink/audioflingersink/gstaudioflingersink.c)
- enhance our android support to wrote the missing part using Android
Java API + JNI + cython extension.
Python world need a real crossplatorm audio library!
from audiostream import get_input # declare a callback where we'll receive the data def callback_mic(data): print 'i got', len(data) # get the microphone (or from another source if available) mic = get_input(callback=callback_mic) mic.start() sleep(5) mic.stop()
Yes, audiostream supporting microphone and speaker access on ios and Android. This example should work, with the appropriate permission as RECORD_AUDIO.
Please note that audiostream doesn't handle any compression, you have to do it yourself. The easiest way would be to save it as a wave.
Good luck!
--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.