Sign in

username:

password:



Not a member?

Search basicx



Search tips

Subscribe to basicx



basicx by Keywords

Accelerometer | ADC | ADXL | Adxl20 | AVR | BasicStamp | BX-35 | BX28 | BX35 | COM3 | Compiler | Downloader | EEPROM | Electromagnet | GetADC | GP2D1 | GPS | I2C | IDE | Keypad | LCD | LCD+ | MIDI | Motors | Multitasking | Netmedia | Networking | PCB | PID | PlaySound | PWM | Relays | RTC | Servo | ShiftOut | SitePlayer | SPI | Stack | Timer | USB

Sponsor

controlSUITE™ software
Comprehensive.
Intuitive.
Optimized.

Real-world software for real-time control. Details Here!

Ads

Discussion Groups

See Also

DSPFPGAElectronics

Discussion Groups | BasicX | PlaySound question....

Discussion forum for the BasicX family of microcontroller chips.

PlaySound question.... - airmaledfw - May 14 20:07:00 2003


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





(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )


Re: PlaySound question.... - Paul Little - May 21 0:30:00 2003

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]





(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )

Re: PlaySound question.... - airmaledfw - May 21 10:28:00 2003

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]





(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )

Re: PlaySound question.... - airmaledfw - May 21 10:56:00 2003

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]


______________________________
controlSUITE™ software. Comprehensive. Intuitive. Optimized.
Real-world software for real-time control. Details Here!



(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )

Re: Re: PlaySound question.... - Raymond Irving - May 21 11:16:00 2003


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]

__________________________________





(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )