Hello Pymedia-Users,

I am working on a similar project to the Karaoke Revolution clone described
on http://sourceforge.net/mailarchive/message.php?msg_id=9846741 .

I have most of the back-end done (including the pitch detection bit), but
I'm stumped on the front-end.

This will seem simple, but the answer will clarify much about Pymedia's
philosophy.

How does one read in microphone input and send it directly to output?  Do I
need to send the sound through a mixer?  How do I deal with latency?  What I
have so far doesn't work as I'd expected:

Thanks

Gregg L.

-------------------------------------
import pymedia.audio.sound as sound
import time, wave

def PlayFromMic():
 'Start the mic, and play'
 sampleRate = 44100
 channels = 2
 F = sound.AFMT_S16_LE

 snd= sound.Input( sampleRate,channels,F)
 snd.start()

 snd1= sound.Output( sampleRate, channels, F )
 while snd.getPosition():
   s=snd.getData()
   if s:
       #snd1.play(s)
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Pymedia-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pymedia-users

Reply via email to