Discussion forum for the BasicX family of microcontroller chips.
|
What's the expected data format for the PlaySound call?
|
|
|
|
-----Original Message----- From: Matthew Daughtrey <> To: ' <> Date: Thursday, February 17, 2000 8:58 AM Subject: [BasicX] PlaySound use? >From: Matthew Daughtrey <> > >What's the expected data format for the PlaySound call? 8 bit, at any sample frequency you want. The number 128 is mid scale which will be 2.5 volts, 0 is 0 volts and 255 is 5 volts. You can record with ADC2COM1 into a PC and then make your files. Jack |
|
I'm not really sure what you are asking regarding the data format, but in my case the BX24 will be receiving a text stream from a radio data link in a fixed format, (ie:I know what data will be where and how many bytes into the stream to recover it.) ASCII characters, I need to play a message for each character (ie; String recvd: "ABC", have chip play message 012, "Alpha", "Bravo", "Charlie"). I will probably use a look up table that will cross the ASCII character "A" to a byte value of "0", assuming that 0 is where I stored "Alpha". The voice chip configuration is simply a bunch of .WAV files stored end to end in the voice chip starting with number 0. To play and message you simply send a single byte to the QV305 chip and IT makes the voice chip play the correct message. Super simple... Mike B. Mike B. ----- Original Message ----- From: Matthew Daughtrey <> To: <> Sent: Thursday, February 17, 2000 7:44 AM Subject: [BasicX] PlaySound use? > From: Matthew Daughtrey <> > > What's the expected data format for the PlaySound call? > > -------------------------------------------------------------------------- ------ > Please click above to support our sponsor > > -------------------------------------------------------------------------- ------ |
|
Duh....... Excuse me folks, disregard my last post in reply to this message!! <g> I was so locked into responding to the voice chip thread I assumed (theres that word again!) the "Playsound Use" was referring to the voice chip stuff. Oh well, gimme a break, I'm old..... Mike B. ----- Original Message ----- From: Jack Schoof <> To: <> Sent: Thursday, February 17, 2000 8:27 AM Subject: Re: [BasicX] PlaySound use? > From: "Jack Schoof" < > -----Original Message----- > From: Matthew Daughtrey <> > To: ' <> > Date: Thursday, February 17, 2000 8:58 AM > Subject: [BasicX] PlaySound use? > >From: Matthew Daughtrey <> > > > >What's the expected data format for the PlaySound call? > > > > 8 bit, at any sample frequency you want. The number 128 is mid scale which > will be 2.5 volts, 0 is 0 volts and 255 is 5 volts. > > You can record with ADC2COM1 into a PC and then make your files. > > Jack > > -------------------------------------------------------------------------- ------ > Please click above to support our sponsor > > -------------------------------------------------------------------------- ------ |