pitch-detection

Pydub raw audio data

橙三吉。 提交于 2020-01-01 19:25:52
问题 I'm using Pydub in Python 3.4 to try to detect the pitch of some audio files. I have a working pitch detection algorithm (McLeod Pitch Method), which is robust for real-time applications (I even made an Android pitch detection app with it: https://github.com/sevagh/Pitcha). My issue is that I'm not getting any meaningful output from the algorithm when I apply it to AudioSegment._data. Code: from pydub import AudioSegment sound = AudioSegment.from_wav(file="./8700hz.wav") #sampling rate =

why the UI does not show till the while loop breaks?

我只是一个虾纸丫 提交于 2019-12-04 16:25:17
this code is answered in Voice Detection in Android Application . It works fine but there is issue that the content of the page does not load until and unless the any voice has been detected and this snippet also makes the app crash few a times public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); // Get the minimum buffer size required for the successful creation of an AudioRecord object. int bufferSizeInBytes = AudioRecord.getMinBufferSize( RECORDER_SAMPLERATE, RECORDER_CHANNELS, RECORDER_AUDIO_ENCODING ); // Initialize Audio