Skip to content

Commit dc3ba36

Browse files
author
Hasya Shah
committed
Change references to keys to model license
1 parent 3d34c3c commit dc3ba36

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

articles/ai-services/speech-service/embedded-speech.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -184,12 +184,12 @@ var embeddedSpeechConfig = EmbeddedSpeechConfig.FromPaths(paths.ToArray());
184184
// For speech to text
185185
embeddedSpeechConfig.SetSpeechRecognitionModel(
186186
"Microsoft Speech Recognizer en-US FP Model V8",
187-
Environment.GetEnvironmentVariable("MODEL_KEY"));
187+
Environment.GetEnvironmentVariable("EMBEDDED_SPEECH_MODEL_LICENSE"));
188188
189189
// For text to speech
190190
embeddedSpeechConfig.SetSpeechSynthesisVoice(
191191
"Microsoft Server Speech Text to Speech Voice (en-US, JennyNeural)",
192-
Environment.GetEnvironmentVariable("VOICE_KEY"));
192+
Environment.GetEnvironmentVariable("EMBEDDED_SPEECH_MODEL_LICENSE"));
193193
embeddedSpeechConfig.SetSpeechSynthesisOutputFormat(SpeechSynthesisOutputFormat.Riff24Khz16BitMonoPcm);
194194
```
195195
::: zone-end
@@ -209,12 +209,12 @@ auto embeddedSpeechConfig = EmbeddedSpeechConfig::FromPaths(paths);
209209
// For speech to text
210210
embeddedSpeechConfig->SetSpeechRecognitionModel((
211211
"Microsoft Speech Recognizer en-US FP Model V8",
212-
GetEnvironmentVariable("MODEL_KEY"));
212+
GetEnvironmentVariable("EMBEDDED_SPEECH_MODEL_LICENSE"));
213213

214214
// For text to speech
215215
embeddedSpeechConfig->SetSpeechSynthesisVoice(
216216
"Microsoft Server Speech Text to Speech Voice (en-US, JennyNeural)",
217-
GetEnvironmentVariable("VOICE_KEY"));
217+
GetEnvironmentVariable("EMBEDDED_SPEECH_MODEL_LICENSE"));
218218
embeddedSpeechConfig->SetSpeechSynthesisOutputFormat(SpeechSynthesisOutputFormat::Riff24Khz16BitMonoPcm);
219219
```
220220
@@ -232,12 +232,12 @@ var embeddedSpeechConfig = EmbeddedSpeechConfig.fromPaths(paths);
232232
// For speech to text
233233
embeddedSpeechConfig.setSpeechRecognitionModel(
234234
"Microsoft Speech Recognizer en-US FP Model V8",
235-
System.getenv("MODEL_KEY"));
235+
System.getenv("EMBEDDED_SPEECH_MODEL_LICENSE"));
236236
237237
// For text to speech
238238
embeddedSpeechConfig.setSpeechSynthesisVoice(
239239
"Microsoft Server Speech Text to Speech Voice (en-US, JennyNeural)",
240-
System.getenv("VOICE_KEY"));
240+
System.getenv("EMBEDDED_SPEECH_MODEL_LICENSE"));
241241
embeddedSpeechConfig.setSpeechSynthesisOutputFormat(SpeechSynthesisOutputFormat.Riff24Khz16BitMonoPcm);
242242
```
243243

0 commit comments

Comments
 (0)