auditok.io.player_for

auditok.io.player_for(source)[source]

Return an AudioPlayer compatible with source (i.e., has the same sampling rate, sample width and number of channels).

Parameters:source (AudioSource) – An object that has sampling_rate, sample_width and sample_width attributes.
Returns:player – An audio player that has the same sampling rate, sample width and number of channels as source.
Return type:PyAudioPlayer