[Speex-dev] a way restrict encoding sound volume

farhan at phonestack.com farhan at phonestack.com
Mon Jul 9 06:11:05 PDT 2007


two things possible:

1. use the gain control, luke.

2. use the speex preprocessor.

- farhan

On Mon, 9 Jul 2007, ?? wrote:

> You have the point.
>
> "I get very distorted speech when using libspeex in my application. What¡¯s 
> wrong?
> ....
> If the input speech has an amplitude close to ¡¾2^15, it is possible that at 
> decoding, the amplitude be a bit higher than that, causing clipping when 
> saving as 16-bit PCM."
>
> This is one of FAQs in 'speex-manual' you wrote. I guess amplitudes close to 
> 2^15 bother me. Do you have any idea to avoid it? I believe speex give me a 
> solution or Plan B;)
>
> Thank you.
>
>
>> From: Dmitry Yakimov <support at zipcure.com>
>> To: ?? <dawn144kr at hotmail.com>
>> Subject: Re: [Speex-dev] a way restrict encoding sound volume
>> Date: Mon, 09 Jul 2007 11:33:02 +0400
>> 
>> Hi,
>> 
>> It is much better to spend a bit of time and find where overflow occurs,
>> then send your patches.
>> 
>> > Thanks for reading.
>> >
>> > I wonder if there are some ways to reduce volume at encoding time.
>> > When I encode with speex, a loud sound makes a harsh big noise.
>> > By control input volume on which mix controller for example, it may be
>> > solved.
>> > But I want to suppress input sounds by my program automatically not by
>> > user control.
>> >
>> > What should I do?
>> >
>> >
>> > _______________________________________________
>> > Speex-dev mailing list
>> > Speex-dev at xiph.org
>> > http://lists.xiph.org/mailman/listinfo/speex-dev
>> >
>> >
>> Best Regards,
>> Dmitry Yakimov
>
>
> _______________________________________________
> Speex-dev mailing list
> Speex-dev at xiph.org
> http://lists.xiph.org/mailman/listinfo/speex-dev
>


More information about the Speex-dev mailing list