Discussion forum for the BasicX family of microcontroller chips.
|
I was browsing over some posts and came across the application note for the PlaySound with block data (msg 11913). I am somewhat confused by the application note which talks about creating block data text files representing audio waveforms. I mean, I looked at the text files and understood what the values were doing and represented but... ...if I were to record a speech WAV file ("Hello World") and convert that WAV file from it's hex byte values to decimal equivalent text... would this work for the block data text file? Can you load an audio clip for PlaySound (WAV or some other format) without it being in text form? TIA |
|
|
|
This is my first post to the list. I am an electronic technician and I have built lots
of circuits and a few "projects" through the years. The BX-24 is all new to me,
although I have built projects with other microcontrollers. This thing really takes the
work out of building intelligent projects. I've been watching for an answer to this question about playsound-- and I'm still waiting. Has anyone out there used the playsound function? Is the quality good enough for telephone quality speech? Thanks, Paul Little in Texas ----- Original Message ----- From: airmaledfw To: Sent: Wednesday, May 14, 2003 8:07 PM Subject: [BasicX] PlaySound question.... I was browsing over some posts and came across the application note for the PlaySound with block data (msg 11913). I am somewhat confused by the application note which talks about creating block data text files representing audio waveforms. I mean, I looked at the text files and understood what the values were doing and represented but... ...if I were to record a speech WAV file ("Hello World") and convert that WAV file from it's hex byte values to decimal equivalent text... would this work for the block data text file? Can you load an audio clip for PlaySound (WAV or some other format) without it being in text form? TIA [Non-text portions of this message have been removed] |
|
|
|
Hey there, Paul Little of Texas.... someone actually answered me privately via e-mail so I'll post it. there's a good little article here: http://stage.itp.tsoa.nyu.edu/~jn429/playsound/ --- In , "Paul Little" <plhome@p...> wrote: > This is my first post to the list. I am an electronic technician and I have built lots of circuits and a few "projects" through the years. The BX-24 is all new to me, although I have built projects with other microcontrollers. This thing really takes the work out of building intelligent projects. > > I've been watching for an answer to this question about playsound-- and I'm still waiting. > > Has anyone out there used the playsound function? Is the quality good enough for telephone quality speech? > > Thanks, > Paul Little > in Texas > > ----- Original Message ----- > From: airmaledfw > To: > Sent: Wednesday, May 14, 2003 8:07 PM > Subject: [BasicX] PlaySound question.... > > I was browsing over some posts and came across the application note > for the PlaySound with block data (msg 11913). > > I am somewhat confused by the application note which talks about > creating block data text files representing audio waveforms. I mean, > I looked at the text files and understood what the values were doing > and represented but... > > ...if I were to record a speech WAV file ("Hello World") and convert > that WAV file from it's hex byte values to decimal equivalent text... > would this work for the block data text file? > > Can you load an audio clip for PlaySound (WAV or some other format) > without it being in text form? > > TIA > > [Non-text portions of this message have been removed] |
|
|
|
While I'm at it though.... I could test this but someone might already know the answer. Are comment lines allowed in block data text files? TIA --- In , "airmaledfw" <airmaledfw@h...> wrote: > Hey there, Paul Little of Texas.... someone actually answered me > privately via e-mail so I'll post it. > > there's a good little article here: > > http://stage.itp.tsoa.nyu.edu/~jn429/playsound/ > > --- In , "Paul Little" <plhome@p...> wrote: > > This is my first post to the list. I am an electronic technician > and I have built lots of circuits and a few "projects" through the > years. The BX-24 is all new to me, although I have built projects > with other microcontrollers. This thing really takes the work out of > building intelligent projects. > > > > I've been watching for an answer to this question about playsound- - > and I'm still waiting. > > > > Has anyone out there used the playsound function? Is the quality > good enough for telephone quality speech? > > > > Thanks, > > Paul Little > > in Texas > > > > ----- Original Message ----- > > From: airmaledfw > > To: > > Sent: Wednesday, May 14, 2003 8:07 PM > > Subject: [BasicX] PlaySound question.... > > > > > > > > I was browsing over some posts and came across the application > note > > for the PlaySound with block data (msg 11913). > > > > I am somewhat confused by the application note which talks about > > creating block data text files representing audio waveforms. I > mean, > > I looked at the text files and understood what the values were > doing > > and represented but... > > > > ...if I were to record a speech WAV file ("Hello World") and > convert > > that WAV file from it's hex byte values to decimal equivalent > text... > > would this work for the block data text file? > > > > Can you load an audio clip for PlaySound (WAV or some other > format) > > without it being in text form? > > > > TIA > > > > > > > > [Non-text portions of this message have been removed] |
|
So does this means that we can use GoldWave to produce ASCII float mono format and then upload it to the BX using the following code? Private SoundStep As New ByteVectorData Sub Main() Dim Address As New UnsignedInteger Call SoundStep.Source("mysound.txt") Address = CuInt(SoundStep.DataAddress) Call PlaySound(17, Address, 1000, 1000, 1) End Sub Where "mysound.txt" is a file produces from gold wave in the ASCII float mono format. Any ideas? -- Raymond Irving --- airmaledfw <> wrote: > Hey there, Paul Little of Texas.... someone actually > answered me > privately via e-mail so I'll post it. > > there's a good little article here: > > http://stage.itp.tsoa.nyu.edu/~jn429/playsound/ > > --- In , "Paul Little" > <plhome@p...> wrote: > > This is my first post to the list. I am an > electronic technician > and I have built lots of circuits and a few > "projects" through the > years. The BX-24 is all new to me, although I have > built projects > with other microcontrollers. This thing really > takes the work out of > building intelligent projects. > > > > I've been watching for an answer to this question > about playsound-- > and I'm still waiting. > > > > Has anyone out there used the playsound function? > Is the quality > good enough for telephone quality speech? > > > > Thanks, > > Paul Little > > in Texas > > > > ----- Original Message ----- > > From: airmaledfw > > To: > > Sent: Wednesday, May 14, 2003 8:07 PM > > Subject: [BasicX] PlaySound question.... > > > > > > > > I was browsing over some posts and came across > the application > note > > for the PlaySound with block data (msg 11913). > > > > I am somewhat confused by the application note > which talks about > > creating block data text files representing > audio waveforms. I > mean, > > I looked at the text files and understood what > the values were > doing > > and represented but... > > > > ...if I were to record a speech WAV file ("Hello > World") and > convert > > that WAV file from it's hex byte values to > decimal equivalent > text... > > would this work for the block data text file? > > > > Can you load an audio clip for PlaySound (WAV or > some other > format) > > without it being in text form? > > > > TIA > > > > > > > > [Non-text portions of this message have been > removed] __________________________________ |