Skip to content

Commit 852e74c

Browse files
author
Jay Lieske
committed
Update SimpleSpeech, SimpleGrammar, and SimpleTTS iOS samples for Speech SDK 2.0.1.
1 parent 95be331 commit 852e74c

File tree

6 files changed

+24
-1
lines changed

6 files changed

+24
-1
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
eclipse.preferences.version=1
2+
encoding/<project>=UTF-8
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#Tue Feb 21 19:15:57 PST 2012
2+
eclipse.preferences.version=1
3+
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
4+
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
5+
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
6+
org.eclipse.jdt.core.compiler.compliance=1.6
7+
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
8+
org.eclipse.jdt.core.compiler.debug.localVariable=generate
9+
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
10+
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
11+
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
12+
org.eclipse.jdt.core.compiler.source=1.6

iOS/Speech/SimpleGrammar/Classes/SimpleGrammarViewController.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ - (void) prepareSpeech
7070
speechService.delegate = self;
7171
//speechService.endingSilence = 1.25;
7272

73+
// Enable the Speex codec, which provides better speech recognition accuracy.
74+
speechService.audioFormat = ATTSKAudioFormatSpeex_WB;
75+
7376
// Use default speech UI.
7477
speechService.showUI = YES;
7578

iOS/Speech/SimpleSpeech/Classes/SimpleSpeechViewController.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ - (void) prepareSpeech
5050
// Choose the speech recognition package.
5151
speechService.speechContext = @"WebSearch";
5252

53+
// Enable the Speex codec, which provides better speech recognition accuracy.
54+
speechService.audioFormat = ATTSKAudioFormatSpeex_WB;
55+
5356
// Start the OAuth background operation, disabling the Talk button until
5457
// it's done.
5558
talkButton.enabled = NO;

iOS/Speech/SimpleTTS/Classes/SimpleTTSViewController.m

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,10 @@ - (void) prepareSpeech
7676
// Choose the speech recognition package.
7777
speechService.speechContext = @"QuestionAndAnswer";
7878

79-
// Start the OAuth background operation, disabling the Talk button until
79+
// Enable the Speex codec, which provides better speech recognition accuracy.
80+
speechService.audioFormat = ATTSKAudioFormatSpeex_WB;
81+
82+
// Start the OAuth background operation, disabling the Talk button until
8083
// it's done.
8184
[self validateOAuthForService: speechService];
8285

iOS/Speech/SimpleTTS/SimpleTTS.xcodeproj/project.pbxproj

100644100755
File mode changed.

0 commit comments

Comments
 (0)