Open oceanpix opened 7 years ago
I'm trying to make use of the audiostream module (v0.2) that is currently installed by default in QPython but whenever I call the get_input() or get_output() function, I get a segmentation fault error.
In an old post of stackoverflow I read that an user had a similar problem in the past, but unfortunately no answer have been published to solve this issue so far. http://stackoverflow.com/questions/35877208/raw-pcm-audio-playback-with-qpython-audiostream
In this previous ticket (#39) another use arise a similar issue with this module. https://github.com/qpython-android/qpython.org/issues/39
This is a test code example directly from the developer website that return the segmentation fault error
from audiostream import get_input
def callback_mic(data): print 'i got', len(data)
mic = get_input(callback=callback_mic) mic.start() sleep(5) mic.stop()
https://audiostream.readthedocs.io/en/latest/
I'm running QPython 1.2.7 on a Nexus5 with Marshmallow. All the permission in the app are enabled as well as the recording capabilities.
Thank you very much for your support!
I'm trying to make use of the audiostream module (v0.2) that is currently installed by default in QPython but whenever I call the get_input() or get_output() function, I get a segmentation fault error.
In an old post of stackoverflow I read that an user had a similar problem in the past, but unfortunately no answer have been published to solve this issue so far. http://stackoverflow.com/questions/35877208/raw-pcm-audio-playback-with-qpython-audiostream
In this previous ticket (#39) another use arise a similar issue with this module. https://github.com/qpython-android/qpython.org/issues/39
This is a test code example directly from the developer website that return the segmentation fault error
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()
https://audiostream.readthedocs.io/en/latest/
I'm running QPython 1.2.7 on a Nexus5 with Marshmallow. All the permission in the app are enabled as well as the recording capabilities.
Thank you very much for your support!