×
Namespaces

Variants
Actions
(Difference between revisions)

Archived:Speech Encoder Config Symbian API

From Nokia Developer Wiki
Jump to: navigation, search
Forum Nokia KB (Talk | contribs)
m (1 revision(s))
lpvalente (Talk | contribs)
m (Lpvalente -)
(11 intermediate revisions by 5 users not shown)
Line 1: Line 1:
[[Category:Symbian C++]][[Category:S60 3rd Edition, Feature Pack 2 ]][[Category:For publishing]] [[Category:Multimedia]][[Category:Audio]][[Category:Code Examples]]
+
[[Category:Symbian C++]][[Category:S60 3rd Edition FP2]][[Category:Multimedia]][[Category:Audio]][[Category:Code Snippet]][[Category:Code Snippet]]
__NOTOC__
+
{{Archived|timestamp=20120313123006|user=roy.debjit| }}
__NOEDITSECTION__
+
{{KBCS}}
+
{|style="background:#eceff2" width="660px" border="1" cellpadding="5" cellspacing="0"
+
|-
+
|'''ID''' ||CS001030
+
|'''Creation date''' ||June 13, 2008
+
|-
+
|'''Platform''' ||S60 3rd Edition, FP2
+
|'''Tested on devices''' || 
+
|-
+
|'''Category''' ||Symbian C++
+
|'''Subcategory''' ||Multimedia, Audio
+
|-
+
|}
+
  
 +
{{ArticleMetaData <!-- v1.2 -->
 +
|sourcecode= <!-- Link to example source code (e.g. [[Media:The Code Example ZIP.zip]]) -->
 +
|installfile= <!-- Link to installation file (e.g. [[Media:The Installation File.sis]]) -->
 +
|devices= <!-- Devices tested against - e.g. ''devices=Nokia 6131 NFC, Nokia C7-00'') -->
 +
|sdk= <!-- SDK(s) built and tested against (e.g. [http://linktosdkdownload/ Nokia Qt SDK 1.1]) -->
 +
|platform= S60 3rd Edition, FP2
 +
|devicecompatability= <!-- Compatible devices (e.g.: All* (must have GPS) ) -->
 +
|dependencies= <!-- Any other/external dependencies e.g.: Google Maps Api v1.0 -->
 +
|signing= <!-- Empty or one of Self-Signed, DevCert, Manufacturer -->
 +
|capabilities= <!-- Capabilities required by the article/code example (e.g. Location, NetworkServices. -->
 +
|keywords= Speech Encoder Config API
 +
|language= <!-- Language category code for non-English topics - e.g. Lang-Chinese -->
 +
|translated-by= <!-- [[User:XXXX]] -->
 +
|translated-from-title= <!-- Title only -->
 +
|translated-from-id= <!-- Id of translated revision -->
 +
|review-by= <!-- After re-review: [[User:username]] -->
 +
|review-timestamp= <!-- After re-review: YYYYMMDD -->
 +
|update-by= <!-- After significant update: [[User:username]]-->
 +
|update-timestamp= <!-- After significant update: YYYYMMDD -->
 +
|creationdate= 20080613
 +
|author= [[User:Technical writer 1]]
 +
<!-- The following are not in current metadata -->
 +
|subcategory= Multimedia, Audio
 +
|id= CS001030
 +
}}
  
{|style="background:#eceff2" width="660px" border="1" cellpadding="5" cellspacing="0"
 
|-
 
|'''Keywords (APIs, classes, methods, functions):''' Speech Encoder Config API
 
|}
 
  
 
+
{{Note|
{{NoteS}}
+
 
:This API is not part of the public SDK. It can be found in the [[SDK API Plug-in]].  
 
:This API is not part of the public SDK. It can be found in the [[SDK API Plug-in]].  
{{NoteE}}
+
}}
 
+
  
The Speech Encoder Config API acts as an interface for configuring speech encoders, in particular AMR-NB.  
+
 
 +
{{Abstract|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 <tt>CMMFDevSound</tt> or <tt>CMdaAudioInputStream</tt> instance must be passed to the <tt>CSpeechEncoderConfig::NewL()</tt> constructor.
+
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 {{Icode|CMMFDevSound}} or {{Icode|CMdaAudioInputStream}} instance must be passed to the {{Icode|CSpeechEncoderConfig::NewL()}} constructor.
  
 
The following code snippet shows how to set the AMR encoding mode using the Speech Encoder Config API:
 
The following code snippet shows how to set the AMR encoding mode using the Speech Encoder Config API:

Revision as of 17:16, 4 October 2012

Archived.pngArchived: 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}}.

Article Metadata
Compatibility
Platform(s): S60 3rd Edition, FP2
S60 3rd Edition FP2
Article
Keywords: Speech Encoder Config API
Created: User:Technical writer 1 (13 Jun 2008)
Last edited: lpvalente (04 Oct 2012)


Note.pngNote: :This API is not part of the public SDK. It can be found in the SDK API Plug-in.


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.

84 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×