Python Forum
I want to know how I can determine pitch and volume from my computer microphone.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I want to know how I can determine pitch and volume from my computer microphone.
#1
Hello there! Firstly, I am not a Python programmer. I rarely code in Python. But now, I need to make my program runs headlessly.

I have these Java/Processing codes from https*//github*com/Notnasiul/R2D2-Processing-Pitch that takes input from computer microphone and then detect pitch and volume in real time.

http*//imgur*com/91t0zK7

As you can see here the thicker the color is the louder the volume. While, the height of the lines represent the pitch.

I manage to have this functionality using aubiopitch (check here, http*//aubio*org/manpages/latest/aubiopitch.1.html), however the process is not seamless/what I want.

1. I need to make a Python script that record sound from microphone.
2. Save that sound into .wav file.
3. Using aubiopitch my_wav_file.wav to determine the pitch and the volume in the terminal.

What I want is to just directly determine the pitch and the volume from the microphone. I do not want to save the recording to .wav file first. So my desired processes would be like this.

1. Stream audio from microphone.
2. Determine the pitch and the volume and display it into my terminal.

I hope I can get some advice on how I can get pitch and volume directly from microphone.
Thank you so much and have a good day!

EDIT 1: I cannot post links.
Reply
#2
Tried: https://wiki.python.org/moin/Audio ?
Unless noted otherwise, code in my posts should be understood as "coding suggestions", and its use may require more neurones than the two necessary for Ctrl-C/Ctrl-V.
Your one-stop place for all your GIMP needs: gimp-forum.net
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  mute spotify by the mixer of volume garze23 0 333 Feb-27-2024, 05:42 PM
Last Post: garze23
  Microphone stream manipulation Talking2442 1 2,837 Nov-19-2023, 02:08 PM
Last Post: palumanic
  Create a 3D volume with some properties. Rosendo 0 1,492 Jul-18-2020, 08:20 PM
Last Post: Rosendo
  Windows Volume Control using python Arun 1 4,845 May-17-2019, 02:50 PM
Last Post: Larz60+
  How to determine pen color from an image? robie972003 2 2,507 Mar-24-2019, 10:06 PM
Last Post: robie972003
  determine if an number is in a list Dbeah 7 3,917 Nov-06-2018, 12:11 PM
Last Post: buran
  determine if an number is in a list Dbeah 1 2,308 Nov-04-2018, 04:50 PM
Last Post: stullis
  Working with large volume of data (RAM is not enough) evonevo 6 4,250 Oct-21-2018, 09:24 PM
Last Post: Larz60+
  how to determine if an object is a number Skaperen 6 4,131 Jul-11-2018, 08:18 PM
Last Post: Skaperen
  How Do I Determine indentation in AST? jimo 3 4,372 Jul-01-2018, 04:25 PM
Last Post: buran

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020