Thread
:
Help! PyQt4: get input level from the N900 Microphone
View Single Post
gavinmitchell
2010-05-29 , 22:41
Posts: 3 | Thanked: 5 times | Joined on Nov 2009
#
7
I haven't tried any Qt4.6 development but have managed to get python to monitor mic audio levels using gstreamer tools
pipeline = gst.parse_launch("pulsesrc ! level message=true ! fakesink")
bus = pipeline.get_bus()
bus.enable_sync_message_emission()
bus.add_signal_watch()
bus.connect("message::element", on_message)
pipeline.set_state(gst.STATE_PLAYING)
then create a callback function that acts on the message retuned from the level monitor (you can control the frequency of the level sampling too)
Quote & Reply
|
The Following User Says Thank You to gavinmitchell For This Useful Post:
helex
gavinmitchell
View Public Profile
Find all posts by gavinmitchell