Re: PWM -> Audio



On Dec 6, 8:52 am, Silvar Beitel <silverbee...@xxxxxxxxxxxx> wrote:
MooseFET wrote:
A small increase in the PWM rate can make quite a large improvement in
the quality of the voice data. If you assume an upper limit on the
bandwidth of the audio of 4KHz, you want to sample at more than twice
the 4KHz.

The Nyquist frequency is the first frequency you can't fully
reepresent and not the last one you can. You want to suppress Nyquist
and above. When Nyquist equals the top of the band, this is
imposible.

Yes. This is voice audio < 4 kHz sampled at 8 kHz.
But how much less than 4KHz? For voice 3KHz is usually considered
the highest frequency. 3KHz is too close to 4KHz for a really cheap
filter.

You can stop short of that. The PWM data can have its frequency
responce adjusted to correct for the shape of the filter. This allows
a much simpler filter because the power in the signal decreases
greatly above 1KHz. Your filter could have its 3dB point at 1.5KHz and
the data could be boosted above 1.5KHz.

Interesting thought, but computationally not something I want to do in
the microcontroller!

Wimp!

Temp = PrevSample;
PrevSample = NewSample;
NewSample = NewSample - Temp/2;

This gives a 3X boost at Nyquist. The divide is a simple shift to the
right.

For voice data sourced from a server or burned
into ROM, sounds like a good idea.

The latter was my case.


4) Just try to get the PWM frequency as high as the rest of the system
will allow and then drive the earphones/speaker directly, using the
speaker/headphones as part of the filter. Certainly cheap, but what
about emissions, especially out of probably non-shielded headphone
cords?

If you do this never test it to see if it passes FCC.

I can buy stickers cheap :-)

Thanks for your input.

--
Silvar Beitel

.



Relevant Pages

  • Re: PWM -> Audio
    ... This is voice audio < 4 kHz sampled at 8 kHz. ... responce adjusted to correct for the shape of the filter. ... For voice data sourced from a server or burned ... I can buy stickers cheap :-) ...
    (sci.electronics.design)
  • Re: PWM -> Audio
    ... Although the Nyquist condition applies for the PWM, the nonlinear processing of the original signal is required to restore it acurately. ... the brute force way to deal with that is to boost the PWM rate to somewhat x10...x20 of the maximum audio frequency of interest. ... responce adjusted to correct for the shape of the filter. ... it is good to apply the preemphasis to the original voice data and design the output PWM filter slope so it would do the deemphasis. ...
    (sci.electronics.design)
  • Re: Added iviaudioncss.ax to the Problem Codec List
    ... > also the exact same audio compression standard used for MPEG-1 VCDs; ... >> there's another appropriate codec on my system, ... > Only if the audio codec (DS Filter) was properly registered as a Direct ... > Remove Programs" to force a repair install of the affected program. ...
    (microsoft.public.windowsxp.moviemaker)
  • Re: Dogs would rather eat your turkey than fix your computer
    ... And when you say sweeten the audio, ... > audio on a voice over. ... applied it to voiceover at some time or another FOR EFFECT. ... Lavalier mics are ...
    (rec.sport.golf)
  • Re: Free download spectral analyser.
    ... suite for measuring speaker response in-room. ... that will be good for most of the audio programs and tests (good S/N, IMD, ... and the filter I built is an opamp with bridged RC T filter in the NFB ... But to facilitate the measuring process, ...
    (rec.audio.tubes)