Namespaces
Variants
Actions
(Difference between revisions)

Archived:Speech Encoder Config Symbian API

Jump to: navigation, search
m (Hamishwillee - Bot change of template (Template:CodeSnippet) - now using Template:ArticleMetaData)
(Debjit.roy -)
Line 1: Line 1:
[[Category:Symbian C++]][[Category:S60 3rd Edition, Feature Pack 2 ]][[Category:Multimedia]][[Category:Audio]][[Category:Code Examples]][[Category:Code Snippet]]
+
[[Category:Symbian C++]][[Category:S60 3rd Edition, Feature Pack 2]][[Category:Multimedia]][[Category:Audio]][[Category:Code Examples]][[Category:Code Snippet]]
 
__NOTOC__
 
__NOTOC__
 
__NOEDITSECTION__
 
__NOEDITSECTION__
Line 26: Line 26:
 
}}
 
}}
  
 
+
{{Archived|timestamp=20120313123006|user=roy.debjit| }}
 +
 
 
The Speech Encoder Config API acts as an interface for configuring speech encoders, in particular AMR-NB.  
 
The Speech Encoder Config API acts as an interface for configuring speech encoders, in particular AMR-NB.  
  

Revision as of 15:30, 13 March 2012

Template:KBCS

Article Metadata

Compatibility
Platform(s): S60 3rd Edition, FP2

Platform Security
Capabilities: )

Article
Keywords: Speech Encoder Config API
Created: User:Technical writer 1 (13 Jun 2008)
Last edited: debjit.roy (13 Mar 2012)


Note.png
Note: :This API is not part of the public SDK. It can be found in the SDK API Plug-in.
Archived.png
Archived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

The Speech Encoder Config API acts as an interface for configuring speech encoders, in particular AMR-NB.

Using the API, it is possible to retrieve supported bit rates for a particular audio codec as well as set the encoding bit rate. Previously, the only public way to configure the AMR encoder was Audio Proxy Server (APS uses this interface internally). From S60 3rd Edition, Feature Pack 2 onwards, the speech encoder API can be used directly. A reference to either a successfully initialized CMMFDevSound or CMdaAudioInputStream instance must be passed to the CSpeechEncoderConfig::NewL() constructor.

The following code snippet shows how to set the AMR encoding mode using the Speech Encoder Config API:

Header file

 speechencoderconfig.h

Library

 SpeechEncoderConfig.lib

Code example

 CSpeechEncoderConfig* custInt = 
CSpeechEncoderConfig::NewL( iDevSound );
// iDevSound is initialized with AMN-NB FourCC code
if (custInt)
{
TInt iBitRate = 4750; // AMR-NB 4.75 kbps (mode 0)
// set the encoding mode(0) to the HW device
TInt err = custInt->SetBitrate( iBitRate );
if( err != KErrNone )
{
CEikonEnv::InfoWinL(_L("Error setting AMR encoding mode"),_L(""));
}
else
{
CEikonEnv::InfoWinL(_L("Setting AMR encoding mode successful"),_L(""));
}

Using the Speech Encoder Config API, it is possible to set the VAD (Voice Activity Detection) mode as well as to get the status of VAD.

183 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved