Read the internal queue and dispatch the data through the callback callback ¶Ĭallback to call when bytes are available on the input, called from theĪudio thread. Stop the input to gather data from the source poll ( ) ¶ ![]() Start the input to gather data from the source stop ( ) ¶ Theses defaults are the most used and guaranted to work onĪndroid and iOS. It will be recorded with a rate of 44100hz, mono, AudioInput ( object ) ¶Ībstract class for handling an audio input. This function currently work only on Android and iOS. If <= 0, it will be automatically sized by the system. buffersize ( integer) – Size of the input buffer.encoding ( integer) – Encoding of the audio stream, can be 8 or 16, default to 16.channels ( integer) – Number of channels, minimum 1, default to 2. ![]() Depending of the platform, you might read other input source. source ( string) – Source device to read, default to ‘default.callback ( callable) – Callback to call when bytes are available on the input, called from the audio thread.Please note that the callback will be called in the same thread as the ![]() Queue regulary in order to trigger the callback. get_input ( callback : callable, source : string, rate : int, channels : int, encoding : int, buffersize : int ) → `AudioInput` instance ¶ From audiostream import get_output stream = get_output ( channels = 2, rate = 22050, buffersize = 1024 ) audiostream.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |