   Sound and OpenGL
  I am thinking about making something where it has me talking in the background, and i want the words i am saying to be put on the screen at the same time i am saying the word......I havent done much with sound before and i have no idea if there is even a quick way other than guess and check to accomplish this. The way i would do it with guess and check is time my talking over and over again, and map the average time between each of my words, and then in the program, after that time has passed, and based on the length of the word i am to say next, i will display the word on the screen...I dont know if this is a practical approach. Can you help me out with that?Also, what i am trying to accomplish, is it the same thing some people talk about when they say they have schronized sound? If it is the same thing, how do you accomplish that?So to summarize, pretty much what i want is my talking in the background and as i say each new word, it appears on the screen.Thanks for the help   "What we do in life, echos in eternity" -- Gladiator 
  you should be able to calculate the length of the wav using the file length and the bitrate. So if you give each word its own wav file you should have your solution. PS you should consider using OpenAL as you already use OpenGL. OpenAL allows you to check how far a source (sound) is played. ;  open the sound in SoundForge and place markers at the beginning of each phrase, then use FMOD to play the sound and place callbacks on each of the markers. check out fmod.org   George D. FiliotisI am a signature virus. Please add me to your signature so that I may multiply.;  Symphonic, can you explain what you just said in more detail?Also, noeska, your idea to make each word into its own .wav file? How would i go about doing this and how would that help if you can clarify.Thanks   "What we do in life, echos in eternity" -- Gladiator ;  I wouldn't do a file for every word, except if you want to play seperate words all the time, in a random order. To get what wordt is at what time, use a program like soundforge (i don't know it myself) or wave studio (freely available at the creative website, at least i think it is). Place a marker at the time a word begins, and display the word at the time that marker is at:The small view, we want to know where the sound starts (not the background sound, the small peaks and such):The word we want is now at the right of the zoomed view:Place a marker and see what time it's at:It is at time 1.808 s.You might want to display the word not from where the talker starts opening his mouth or breathing in, but from where the first verb is clear, in that case it would be: [edited by - Tree Penguin on February 18, 2004 5:09:59 PM];  Thanks very much for the postingI downloaded SoundForge and i am starting to figure it out.I would have to do this for every word i say right? Map the time and put it in a array or something in my program.Is this how the people who have sychronized music in there demo do it? Is there an easier way./Thanks for the help!   "What we do in life, echos in eternity" -- Gladiator 