Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > sci.electronics.design > #389243 > unrolled thread
| Started by | David King <dking@supernet.com> |
|---|---|
| First post | 2015-12-13 10:45 +1100 |
| Last post | 2015-12-15 07:12 +0000 |
| Articles | 18 — 12 participants |
Back to article view | Back to sci.electronics.design
How to Embed WAV files into a Device David King <dking@supernet.com> - 2015-12-13 10:45 +1100
Re: How to Embed WAV files into a Device M Philbrook <jamie_ka1lpa@charter.net> - 2015-12-12 19:46 -0500
Re: How to Embed WAV files into a Device Ian Malcolm <See.My.Sig.for.email@totally.invalid> - 2015-12-13 00:46 +0000
Re: How to Embed WAV files into a Device David King <dking@supernet.com> - 2015-12-13 18:07 +1100
Re: How to Embed WAV files into a Device "Paul Hovnanian P.E." <paul@hovnanian.com> - 2015-12-13 09:43 -0800
Re: How to Embed WAV files into a Device Ian Malcolm <See.My.Sig.for.email@totally.invalid> - 2015-12-13 19:14 +0000
Re: How to Embed WAV files into a Device Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2015-12-13 08:21 +0000
Re: How to Embed WAV files into a Device David King <dking@supernet.com> - 2015-12-13 21:58 +1100
Re: How to Embed WAV files into a Device Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2015-12-13 11:28 +0000
Re: How to Embed WAV files into a Device makolber@yahoo.com - 2015-12-13 05:21 -0800
Re: How to Embed WAV files into a Device David King <dking@supernet.com> - 2015-12-14 18:37 +1100
Re:How to Embed WAV files into a Device bitrex <bitrex@de.lete.earthlink.net> - 2015-12-13 11:43 -0500
Re: How to Embed WAV files into a Device "Robert Lacoste" <see-alciom-dot-com@none.com> - 2015-12-14 08:46 +0100
Re: How to Embed WAV files into a Device DemonicTubes <tlackie@gmail.com> - 2015-12-14 13:40 -0800
Re: How to Embed WAV files into a Device Jasen Betts <jasen@xnet.co.nz> - 2015-12-14 07:43 +0000
Re: How to Embed WAV files into a Device jack4747@gmail.com - 2015-12-14 05:17 -0800
Re: How to Embed WAV files into a Device krw <krw@nowhere.com> - 2015-12-14 13:12 -0500
Re: How to Embed WAV files into a Device Jasen Betts <jasen@xnet.co.nz> - 2015-12-15 07:12 +0000
| From | David King <dking@supernet.com> |
|---|---|
| Date | 2015-12-13 10:45 +1100 |
| Subject | How to Embed WAV files into a Device |
| Message-ID | <2kbp6b9iv9if89lqp3ssr42pvahr5lfuf9@4ax.com> |
I have four 16-bit 44100 audio WAV files, each one being a 1 minute _stereo_ sound effect recording. I would like to build these into a device so that any one of the four can be selected and played, as per the original stereo, in loop mode. Can anyone advise what the best way of doing this might be? I will be making a number of these devices to be used at different locations, so inputting audio from an external device is not really an option. The audio amp will be built separately, so I am only interested in a storage solution as described above. There are no limitations on size, voltage or power. Thanks for any suggestions. Kevin Foster
[toc] | [next] | [standalone]
| From | M Philbrook <jamie_ka1lpa@charter.net> |
|---|---|
| Date | 2015-12-12 19:46 -0500 |
| Message-ID | <MPG.30d689f0465c40ff989e09@news.eternal-september.org> |
| In reply to | #389243 |
In article <2kbp6b9iv9if89lqp3ssr42pvahr5lfuf9@4ax.com>, dking@supernet.com says... > > I have four 16-bit 44100 audio WAV files, each one being a 1 minute > _stereo_ sound effect recording. > > I would like to build these into a device so that any one of the four > can be selected and played, as per the original stereo, in loop mode. > > Can anyone advise what the best way of doing this might be? > > I will be making a number of these devices to be used at different > locations, so inputting audio from an external device is not really an > option. > > The audio amp will be built separately, so I am only interested in a > storage solution as described above. > > There are no limitations on size, voltage or power. > > Thanks for any suggestions. > > Kevin Foster http://www.homemade-circuits.com/2012/11/make-single-chip- programmable.html Jamie
[toc] | [prev] | [next] | [standalone]
| From | Ian Malcolm <See.My.Sig.for.email@totally.invalid> |
|---|---|
| Date | 2015-12-13 00:46 +0000 |
| Message-ID | <XnsA56F847E9BEF0xDEADBEEF@213.239.209.88> |
| In reply to | #389243 |
David King <dking@supernet.com> wrote in news:2kbp6b9iv9if89lqp3ssr42pvahr5lfuf9@4ax.com: > > I have four 16-bit 44100 audio WAV files, each one being a 1 minute > _stereo_ sound effect recording. > > I would like to build these into a device so that any one of the four > can be selected and played, as per the original stereo, in loop mode. > > Can anyone advise what the best way of doing this might be? > > I will be making a number of these devices to be used at different > locations, so inputting audio from an external device is not really an > option. > > The audio amp will be built separately, so I am only interested in a > storage solution as described above. > > There are no limitations on size, voltage or power. > > Thanks for any suggestions. > > Kevin Foster > It depends on your level of embedded development experience. The cheapest unit cost and most flexible would be to write your own audio plyer firmware for a powerful enough MCU, reading the audio data from FLASH or SD card. However if you have the skills to do that, you'd be coding it, not asking how to do it here. At the other end of the skills spectrum, Sparkfun do a couple of modules that may meet your needs: <https://www.sparkfun.com/products/11029> Standalone module. <https://www.sparkfun.com/products/12660> Arduino shield. You'll probably have to convert the audio files into a format the modules support. Both play from MicroSD card, that you would prepare and preload on your PC. -- Ian Malcolm. London, ENGLAND. (NEWSGROUP REPLY PREFERRED) ianm[at]the[dash]malcolms[dot]freeserve[dot]co[dot]uk [at]=@, [dash]=- & [dot]=. *Warning* HTML & >32K emails --> NUL
[toc] | [prev] | [next] | [standalone]
| From | David King <dking@supernet.com> |
|---|---|
| Date | 2015-12-13 18:07 +1100 |
| Message-ID | <p06q6b5itape7im8s36dlbs5q58urnndvf@4ax.com> |
| In reply to | #389251 |
On Sun, 13 Dec 2015 00:46:19 -0000 (UTC), Ian Malcolm <See.My.Sig.for.email@totally.invalid> wrote: >David King <dking@supernet.com> wrote in >news:2kbp6b9iv9if89lqp3ssr42pvahr5lfuf9@4ax.com: > >> >> I have four 16-bit 44100 audio WAV files, each one being a 1 minute >> _stereo_ sound effect recording. >> >> I would like to build these into a device so that any one of the four >> can be selected and played, as per the original stereo, in loop mode. >> >> Can anyone advise what the best way of doing this might be? >> >> I will be making a number of these devices to be used at different >> locations, so inputting audio from an external device is not really an >> option. >> >> The audio amp will be built separately, so I am only interested in a >> storage solution as described above. >> >> There are no limitations on size, voltage or power. >> >> Thanks for any suggestions. >> >> Kevin Foster >> > >It depends on your level of embedded development experience. The >cheapest unit cost and most flexible would be to write your own audio >plyer firmware for a powerful enough MCU, reading the audio data from >FLASH or SD card. However if you have the skills to do that, you'd be >coding it, not asking how to do it here. > I am wondering if their is an existing use of this I can copy from. Seems like it might be a common applcation? >At the other end of the skills spectrum, Sparkfun do a couple of modules >that may meet your needs: > ><https://www.sparkfun.com/products/11029> Standalone module. ><https://www.sparkfun.com/products/12660> Arduino shield. > As per my original post, the requirement is for stereo signals. This makes it a bit more tricky. >You'll probably have to convert the audio files into a format the modules >support. Both play from MicroSD card, that you would prepare and preload >on your PC. There is also thiis, but again not stereo. http://www.4dsystems.com.au/product/SOMO_14D/ David King
[toc] | [prev] | [next] | [standalone]
| From | "Paul Hovnanian P.E." <paul@hovnanian.com> |
|---|---|
| Date | 2015-12-13 09:43 -0800 |
| Message-ID | <5L-dnWI71ayGM_DLnZ2dnUVZ5rWdnZ2d@giganews.com> |
| In reply to | #389282 |
David King wrote: > I am wondering if their is an existing use of this I can copy from. > Seems like it might be a common applcation? Lots of open source stuff out there. But its suitability will depend on how you expect to distribute your device (personal use vs commercial product) and how the particular s/w and h/w is copyrighted. -- Paul Hovnanian mailto:Paul@Hovnanian.com ------------------------------------------------------------------ Disclaimer - These opiini^H^H damn! ^H^H ^Q ^[ .... :w :q :wq :wq! ^d exit X Q ^C ^? :quitbye CtrlAltDel ~~q :~q logout save/quit :!QUIT ^[zz ^[ZZZZZZ ^H man vi ^@ ^L ^[c ^# ^E ^X ^I ^T ? help helpquit ^D man quit ^C ^c ?Quit ?q CtrlShftDel "Hey, what does this button d..."
[toc] | [prev] | [next] | [standalone]
| From | Ian Malcolm <See.My.Sig.for.email@totally.invalid> |
|---|---|
| Date | 2015-12-13 19:14 +0000 |
| Message-ID | <XnsA56FC43A652A40xDEADBEEF@213.239.209.88> |
| In reply to | #389282 |
David King <dking@supernet.com> wrote in news:p06q6b5itape7im8s36dlbs5q58urnndvf@4ax.com: > On Sun, 13 Dec 2015 00:46:19 -0000 (UTC), Ian Malcolm > <See.My.Sig.for.email@totally.invalid> wrote: <snip> > I am wondering if their is an existing use of this I can copy from. > Seems like it might be a common applcation? > Cargo Cult coding here we come. Cutting/pasting succesfully from someone else's codebase for a MCU you aren't familliar with requires an order of magnitude more skill than simply writing it yourself for a MCU and toolchain you already know well. However the Spakfun 12660 Arduino shield has an open source library and sample code for its VS1053B MP3 CODEC chip. >>At the other end of the skills spectrum, Sparkfun do a couple of >>modules that may meet your needs: >> >><https://www.sparkfun.com/products/11029> Standalone module. >><https://www.sparkfun.com/products/12660> Arduino shield. >> > > As per my original post, the requirement is for stereo signals. This > makes it a bit more tricky. > Really? The product datasheets claim both are Stereo. The 11029 board support page has stereo test files. The 12660 shield VS1053B MP3 CODEC chip is stereo. I haven't had them on my bench so I cant personally confirm they are as described but I doubt Sparkfun would knowingly lie about their specifications. -- Ian Malcolm. London, ENGLAND. (NEWSGROUP REPLY PREFERRED) ianm[at]the[dash]malcolms[dot]freeserve[dot]co[dot]uk [at]=@, [dash]=- & [dot]=. *Warning* HTML & >32K emails --> NUL
[toc] | [prev] | [next] | [standalone]
| From | Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> |
|---|---|
| Date | 2015-12-13 08:21 +0000 |
| Message-ID | <n4j9qv$f1t$1@news.datemas.de> |
| In reply to | #389243 |
On a sunny day (Sun, 13 Dec 2015 10:45:31 +1100) it happened David King <dking@supernet.com> wrote in <2kbp6b9iv9if89lqp3ssr42pvahr5lfuf9@4ax.com>: > >I have four 16-bit 44100 audio WAV files, each one being a 1 minute >_stereo_ sound effect recording. > >I would like to build these into a device so that any one of the four >can be selected and played, as per the original stereo, in loop mode. > >Can anyone advise what the best way of doing this might be? > >I will be making a number of these devices to be used at different >locations, so inputting audio from an external device is not really an >option. > >The audio amp will be built separately, so I am only interested in a >storage solution as described above. > >There are no limitations on size, voltage or power. > >Thanks for any suggestions. > >Kevin Foster In the long ago past for 16 bit audio 2 8 bit EPROMS in parallel, address lines driven by a 4040 counter.... as clock a 555 timer perhaps ;-) and a R2R DAC. I build and used a signal generator like that with sine wave in EPROM. At 44000 samples per second = 60 x 44000 = 2.64 MB only... Mine was a bit more complicated, think I published it here a hundred years or sos ago, had sweep etc. But at that size maybe you can find a cheap FPGA. Or even a micro with that much FLASH. I2C FLASH memory + PIC? There are so many possibilities. Buy a Rasberry use SDcard. Cheap FLASH based mp3 players are 4 $ on ebay, interface the chip... On the cheap, if you asked me now, for low power audio out, I would use this 'amp' with I2C FLASH for storage: http://panteltje.com/panteltje/pic/audio_pic/ 2 chip solution. You need a processor anyways for i2c FLASH.
[toc] | [prev] | [next] | [standalone]
| From | David King <dking@supernet.com> |
|---|---|
| Date | 2015-12-13 21:58 +1100 |
| Message-ID | <tejq6bptv92u0bpdlss84abm098kva3ohu@4ax.com> |
| In reply to | #389284 |
On Sun, 13 Dec 2015 08:21:51 GMT, Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> wrote: >In the long ago past for 16 bit audio 2 8 bit EPROMS in parallel, >address lines driven by a 4040 counter.... as clock a 555 timer perhaps ;-) >and a R2R DAC. > >I build and used a signal generator like that with sine wave in EPROM. >At 44000 samples per second = 60 x 44000 = 2.64 MB only... >Mine was a bit more complicated, think I published it here a hundred years or sos ago, >had sweep etc. > >But at that size maybe you can find a cheap FPGA. >Or even a micro with that much FLASH. >I2C FLASH memory + PIC? > >There are so many possibilities. >Buy a Rasberry use SDcard. > > >Cheap FLASH based mp3 players are 4 $ on ebay, interface the chip... > Yes, it might be worth crackig one of these open, attaching fly leads to the control button pads and running off a DC supply. http://www.ebay.com.au/itm/Mini-Clip-USB-MP3-Music-Media-Player-LCD-Screen-Support-32GB-Micro-SD-Card-B-SS-/231782301908?hash=item35f74d40d4:g:r2wAAOSwNphWbO7M David King
[toc] | [prev] | [next] | [standalone]
| From | Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> |
|---|---|
| Date | 2015-12-13 11:28 +0000 |
| Message-ID | <n4jkol$6tr$1@news.datemas.de> |
| In reply to | #389290 |
On a sunny day (Sun, 13 Dec 2015 21:58:48 +1100) it happened David King <dking@supernet.com> wrote in <tejq6bptv92u0bpdlss84abm098kva3ohu@4ax.com>: >On Sun, 13 Dec 2015 08:21:51 GMT, Jan Panteltje ><pNaOnStPeAlMtje@yahoo.com> wrote: > > >>In the long ago past for 16 bit audio 2 8 bit EPROMS in parallel, >>address lines driven by a 4040 counter.... as clock a 555 timer perhaps ;-) >>and a R2R DAC. >> >>I build and used a signal generator like that with sine wave in EPROM. >>At 44000 samples per second = 60 x 44000 = 2.64 MB only... >>Mine was a bit more complicated, think I published it here a hundred years or sos ago, >>had sweep etc. >> >>But at that size maybe you can find a cheap FPGA. >>Or even a micro with that much FLASH. >>I2C FLASH memory + PIC? >> >>There are so many possibilities. >>Buy a Rasberry use SDcard. >> >> >>Cheap FLASH based mp3 players are 4 $ on ebay, interface the chip... >> > >Yes, it might be worth crackig one of these open, attaching fly leads >to the control button pads and running off a DC supply. > >http://www.ebay.com.au/itm/Mini-Clip-USB-MP3-Music-Media-Player-LCD-Screen-Support-32GB-Micro-SD-Card-B-SS-/231782301908?hash=ite >m35f74d40d4:g:r2wAAOSwNphWbO7M > >David King I have two similar to these: http://www.ebay.com/itm/351525389910 1 dollar free shipping. Works really well, no LCD, but the LCD of the other ones is hard to make out (compilcated) (have one of those too). Just push the button and it plays. The card is the expensive part.
[toc] | [prev] | [next] | [standalone]
| From | makolber@yahoo.com |
|---|---|
| Date | 2015-12-13 05:21 -0800 |
| Message-ID | <ce37a3bb-74ad-4416-aeb5-42d6e1e36928@googlegroups.com> |
| In reply to | #389292 |
True, for the price you could use 4 devices, one for each file and avoid the complication of selecting which file the device plays.
[toc] | [prev] | [next] | [standalone]
| From | David King <dking@supernet.com> |
|---|---|
| Date | 2015-12-14 18:37 +1100 |
| Message-ID | <v3ss6blvs2t7utmk2r6na61f5jfgqn53pc@4ax.com> |
| In reply to | #389297 |
On Sun, 13 Dec 2015 05:21:25 -0800 (PST), makolber@yahoo.com wrote: >True, for the price you could use 4 devices, one for each file and avoid the complication of selecting which file the device plays. Then I can mix tracks like Phil Spector. Great idea. Except for the part about spending more money in China. I wonder what it would cost to produce these in the US? http://www.ebay.com/itm/351525389910 David King
[toc] | [prev] | [next] | [standalone]
| From | bitrex <bitrex@de.lete.earthlink.net> |
|---|---|
| Date | 2015-12-13 11:43 -0500 |
| Message-ID | <qfhby.338792$4M.329823@fx17.iad> |
| In reply to | #389243 |
David King <dking@supernet.com> Wrote in message: > > I have four 16-bit 44100 audio WAV files, each one being a 1 minute > _stereo_ sound effect recording. > > I would like to build these into a device so that any one of the four > can be selected and played, as per the original stereo, in loop mode. > > Can anyone advise what the best way of doing this might be? > > I will be making a number of these devices to be used at different > locations, so inputting audio from an external device is not really an > option. > > The audio amp will be built separately, so I am only interested in a > storage solution as described above. > > There are no limitations on size, voltage or power. > > Thanks for any suggestions. > > Kevin Foster > You'd be better off buying a device off the shelf. In the 1980s/1990s, before music production went mostly computer based, various manufacturers made all sorts of hardware boxes for playing back and manipulating audio clips, for example: http://www.vintagesynth.com/akai/s20.php They're reliable and many of them can be had for peanuts on eBay now. -- ----Android NewsGroup Reader---- http://usenet.sinaapp.com/
[toc] | [prev] | [next] | [standalone]
| From | "Robert Lacoste" <see-alciom-dot-com@none.com> |
|---|---|
| Date | 2015-12-14 08:46 +0100 |
| Message-ID | <n4ls51$elb$1@usenet.pasdenom.info> |
| In reply to | #389243 |
"David King" wrote in message news:2kbp6b9iv9if89lqp3ssr42pvahr5lfuf9@4ax.com... >I have four 16-bit 44100 audio WAV files, each one being a 1 minute >_stereo_ sound effect recording. > >I would like to build these into a device so that any one of the four >can be selected and played, as per the original stereo, in loop mode. > >Can anyone advise what the best way of doing this might be? Even if it is overkill, why not simply using a Rapsberry Pie ? An A+ variant has a nice stereo audio codec and can store zillion of audio files on an SD card, for 20$ or so. Robert
[toc] | [prev] | [next] | [standalone]
| From | DemonicTubes <tlackie@gmail.com> |
|---|---|
| Date | 2015-12-14 13:40 -0800 |
| Message-ID | <4079e93b-d371-451c-9a3d-fc290e7da2b6@googlegroups.com> |
| In reply to | #389406 |
On Monday, December 14, 2015 at 12:46:47 AM UTC-7, Robert Lacoste wrote: > "David King" wrote in message > news:2kbp6b9iv9if89lqp3ssr42pvahr5lfuf9@4ax.com... > >I have four 16-bit 44100 audio WAV files, each one being a 1 minute > >_stereo_ sound effect recording. > > > >I would like to build these into a device so that any one of the four > >can be selected and played, as per the original stereo, in loop mode. > > > >Can anyone advise what the best way of doing this might be? > > Even if it is overkill, why not simply using a Rapsberry Pie ? An A+ variant > has a nice stereo audio codec and can store zillion of audio files on an SD > card, for 20$ or so. > > Robert Sounds like a perfect job for the $5 Raspberry Pi Zero https://www.raspberrypi.org/blog/raspberry-pi-zero/
[toc] | [prev] | [next] | [standalone]
| From | Jasen Betts <jasen@xnet.co.nz> |
|---|---|
| Date | 2015-12-14 07:43 +0000 |
| Message-ID | <n4lrvm$6o7$3@gonzo.alcatraz> |
| In reply to | #389243 |
On 2015-12-12, David King <dking@supernet.com> wrote: > > I have four 16-bit 44100 audio WAV files, each one being a 1 minute > _stereo_ sound effect recording. > > I would like to build these into a device so that any one of the four > can be selected and played, as per the original stereo, in loop mode. do you need hi-fi? I scoped a name brand toy phone and saw only 4 different voltage levels at the speaker. > Can anyone advise what the best way of doing this might be? the easiest way that meets your requirements is best. > I will be making a number of these devices to be used at different > locations, so inputting audio from an external device is not really an > option. > The audio amp will be built separately, so I am only interested in a > storage solution as described above. > > There are no limitations on size, voltage or power. a raspberry pi zero has audio out and playback software and plenty of GPIO to trigger the noises with it, needs an SD card. you could do development on a "pi2 model B" then switch to the cheaper zero for deployment if you don't need hi-fi there are cheaper message recorder chips. -- \_(ツ)_
[toc] | [prev] | [next] | [standalone]
| From | jack4747@gmail.com |
|---|---|
| Date | 2015-12-14 05:17 -0800 |
| Message-ID | <1565e73e-87d8-491a-bb82-9c28e40f6205@googlegroups.com> |
| In reply to | #389410 |
Il giorno lunedì 14 dicembre 2015 09:31:10 UTC+1, Jasen Betts ha scritto: > a raspberry pi zero has audio out and playback software and plenty the zero has audio out only through HDMI. need some hacking to output analog audio: https://learn.adafruit.com/introducing-the-raspberry-pi-zero/audio-outputs Bye Jack
[toc] | [prev] | [next] | [standalone]
| From | krw <krw@nowhere.com> |
|---|---|
| Date | 2015-12-14 13:12 -0500 |
| Message-ID | <3j1u6b5djcruad1duktmkugdeap35coicp@4ax.com> |
| In reply to | #389410 |
On 14 Dec 2015 07:43:50 GMT, Jasen Betts <jasen@xnet.co.nz> wrote: >On 2015-12-12, David King <dking@supernet.com> wrote: >> >> I have four 16-bit 44100 audio WAV files, each one being a 1 minute >> _stereo_ sound effect recording. >> >> I would like to build these into a device so that any one of the four >> can be selected and played, as per the original stereo, in loop mode. > >do you need hi-fi? I scoped a name brand toy phone and saw only 4 >different voltage levels at the speaker. Class-D?
[toc] | [prev] | [next] | [standalone]
| From | Jasen Betts <jasen@xnet.co.nz> |
|---|---|
| Date | 2015-12-15 07:12 +0000 |
| Message-ID | <n4oehp$iph$2@gonzo.alcatraz> |
| In reply to | #389463 |
On 2015-12-14, krw <krw@nowhere.com> wrote: > On 14 Dec 2015 07:43:50 GMT, Jasen Betts <jasen@xnet.co.nz> wrote: > >>On 2015-12-12, David King <dking@supernet.com> wrote: >>> >>> I have four 16-bit 44100 audio WAV files, each one being a 1 minute >>> _stereo_ sound effect recording. >>> >>> I would like to build these into a device so that any one of the four >>> can be selected and played, as per the original stereo, in loop mode. >> >>do you need hi-fi? I scoped a name brand toy phone and saw only 4 >>different voltage levels at the speaker. > > Class-D? Looked more like a 2-bit DAC to me, drive was single-ended, audio quality was poor. -- \_(ツ)_
[toc] | [prev] | [standalone]
Back to top | Article view | sci.electronics.design
csiph-web