BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TMediaPlayer, MP3 and Codecs

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.misc
View previous topic :: View next topic  
Author Message
GB Blanchard
Guest





PostPosted: Mon Jan 02, 2006 11:10 am    Post subject: TMediaPlayer, MP3 and Codecs Reply with quote



I've just learned that MediaPlayer can play .mp3 files. My very feeble
understanding of the .mp3 world is that there are various codecs which
enable the reproduction of certain files.

What I want to do is use .mp3 files of recorded speech instead of the
wav files I'm now using. Since I will only be using my own files and
won't have to worry about playing .mp3 files from different sources,
can I supply a codec so that it will work on all computers? Is it even
necessary to do so?

As you can see, these are newbie questions - just trying to get my
toes wet before I dive in.

--
Brad Blanchard
http://www.braser.com
Email accepted from the website

Back to top
alanglloyd@aol.com
Guest





PostPosted: Mon Jan 02, 2006 3:31 pm    Post subject: Re: TMediaPlayer, MP3 and Codecs Reply with quote



AIUI a limited codec for MP3 files (ie up to 56 Kbits/sec) with a
description of "Fraunhofer IIS MPEG Layer-3 Codec (advanced)" is
included in a standard XP OS. If you want higher than that I believe
one has to get a licence from Frauenhofer for a reputed big bucks.

OTOH I have seen an MP3 codec in file I3codecp.exe (initial letter
India for I) on the internet which goes higher (to 112 Kbits/sec).
Whether this is a pirated codec or a "good enough" hack I don't know.

I would have thought 56Kb/s would be good enough for speech. I have
writtem programs using GSM for speech quite satisfactorily using
MediaPlayer for playback and waveIn???() for recording with playback.
Works very well at 11.025KHz 16 bit sampling rate and gives about 2239
bytes/sec for the GSM files. But that's only mono - GSM does not do
stereo. Again the GSM codec comes standard with the OS (Win 95, 98 &
XP).

Alan Lloyd

Back to top
GB Blanchard
Guest





PostPosted: Mon Jan 02, 2006 7:30 pm    Post subject: Re: TMediaPlayer, MP3 and Codecs Reply with quote



Quote:
AIUI a limited codec for MP3 files (ie up to 56 Kbits/sec) with a
description of "Fraunhofer IIS MPEG Layer-3 Codec (advanced)" is
included in a standard XP OS....
{...}
I would have thought 56Kb/s would be good enough for speech.

Those are the two bits of knowledge I needed to go ahead and plunge in.
In short, most if not all people using XP will be able to play such
files. Thanks ever so much again, Alan.

--
Brad Blanchard
http://www.braser.com
Email accepted from the website


Back to top
Nicholas Sherlock
Guest





PostPosted: Tue Jan 03, 2006 1:28 am    Post subject: Re: TMediaPlayer, MP3 and Codecs Reply with quote

GB Blanchard wrote:
Quote:
I've just learned that MediaPlayer can play .mp3 files. My very feeble
understanding of the .mp3 world is that there are various codecs which
enable the reproduction of certain files.

Very limited control and it requires a codec to be installed (which it
isn't on all operating systems), I'd go for BASS:

http://www.un4seen.com/

Or FMOD:

http://www.fmod.org/

Cheers,
Nicholas Sherlock

Back to top
alanglloyd@aol.com
Guest





PostPosted: Tue Jan 03, 2006 8:19 am    Post subject: Re: TMediaPlayer, MP3 and Codecs Reply with quote

You can troll through Sound Recorder to find details of which codecs
are install but I have a small app which displays the ACM (Audio
Compression Manager) PCM converter and all installed codecs together
with details of every format handled. I'll send it to you if you email
me.

You may also find that TMediaPlayer is somewhat limited in its
capability and decide to use waveOut???() & waveIn???() functions. The
WaveFormatExEx record for MP3 you will then need is not easily
available but I have a copy if you need it.

Alan Lloyd

Back to top
GB Blanchard
Guest





PostPosted: Tue Jan 03, 2006 4:59 pm    Post subject: Re: TMediaPlayer, MP3 and Codecs Reply with quote

Quote:
You can troll through Sound Recorder to find details of which codecs
are install but I have a small app which displays the ACM (Audio
Compression Manager) PCM converter and all installed codecs together
with details of every format handled. I'll send it to you if you email
me.

Thank you for the kind offer, but I think that all I need is either to
find out - without doing massive beta-testing - is if most Windows users
have a codec already installed which will allow them to hear .mp3 files
run through MediPlayer, and if not, to supply one in the program.
Nicholas may have solved the second scenario, although the Bass component
may be overkill for what I want to do.

Quote:
You may also find that TMediaPlayer is somewhat limited in its
capability and decide to use waveOut???() & waveIn???() functions. The
WaveFormatExEx record for MP3 you will then need is not easily
available but I have a copy if you need it.

In this particular program, the user is trying to mimic the native
speaker (that's the .mp3 file) and the recording is only held in memory
so that they can listen on the spot - they have no need of saving the
file. Therefore, if I can get the .mp3 playing side working, I'll
continue using the .wavin .wavout functions I already have for the
recording part. I'm just looking at MediaPlayer as an easy way to play
the files. But once again, thank you for offer.

--
Brad Blanchard
http://www.braser.com
Email accepted from the website


Back to top
GB Blanchard
Guest





PostPosted: Tue Jan 03, 2006 4:59 pm    Post subject: Re: TMediaPlayer, MP3 and Codecs Reply with quote

Nicholas Sherlock wrote:

Quote:
Very limited control and it requires a codec to be installed (which it
isn't on all operating systems), I'd go for BASS:

Is there a way to install the codec without using the component? The
reason I ask (and I'm open to suggestions) is that I can normalize the
volume and control the general quality of the original .wav files by
using, for example, GoldWave. So the only step left would be to convert
them to .mp3. This is only for spoken words and short sentences, nothing
more.

Thanks for the tip about Bass. It appears to be a very complete
component. I haven't looked at fmod yet.

--
Brad Blanchard
http://www.braser.com
Email accepted from the website


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.misc All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.