Skip to content

Commit f182342

Browse files
Merge pull request #284281 from hasyashah/hasshah/update-embedded-key-license
Change references of keys to model license
2 parents 53e5193 + dc3ba36 commit f182342

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
@@ -182,12 +182,12 @@ var embeddedSpeechConfig = EmbeddedSpeechConfig.FromPaths(paths.ToArray());
182182
// For speech to text
183183
embeddedSpeechConfig.SetSpeechRecognitionModel(
184184
"Microsoft Speech Recognizer en-US FP Model V8",
185-
Environment.GetEnvironmentVariable("MODEL_KEY"));
185+
Environment.GetEnvironmentVariable("EMBEDDED_SPEECH_MODEL_LICENSE"));
186186
187187
// For text to speech
188188
embeddedSpeechConfig.SetSpeechSynthesisVoice(
189189
"Microsoft Server Speech Text to Speech Voice (en-US, JennyNeural)",
190-
Environment.GetEnvironmentVariable("VOICE_KEY"));
190+
Environment.GetEnvironmentVariable("EMBEDDED_SPEECH_MODEL_LICENSE"));
191191
embeddedSpeechConfig.SetSpeechSynthesisOutputFormat(SpeechSynthesisOutputFormat.Riff24Khz16BitMonoPcm);
192192
```
193193
::: zone-end
@@ -207,12 +207,12 @@ auto embeddedSpeechConfig = EmbeddedSpeechConfig::FromPaths(paths);
207207
// For speech to text
208208
embeddedSpeechConfig->SetSpeechRecognitionModel((
209209
"Microsoft Speech Recognizer en-US FP Model V8",
210-
GetEnvironmentVariable("MODEL_KEY"));
210+
GetEnvironmentVariable("EMBEDDED_SPEECH_MODEL_LICENSE"));
211211

212212
// For text to speech
213213
embeddedSpeechConfig->SetSpeechSynthesisVoice(
214214
"Microsoft Server Speech Text to Speech Voice (en-US, JennyNeural)",
215-
GetEnvironmentVariable("VOICE_KEY"));
215+
GetEnvironmentVariable("EMBEDDED_SPEECH_MODEL_LICENSE"));
216216
embeddedSpeechConfig->SetSpeechSynthesisOutputFormat(SpeechSynthesisOutputFormat::Riff24Khz16BitMonoPcm);
217217
```
218218
@@ -230,12 +230,12 @@ var embeddedSpeechConfig = EmbeddedSpeechConfig.fromPaths(paths);
230230
// For speech to text
231231
embeddedSpeechConfig.setSpeechRecognitionModel(
232232
"Microsoft Speech Recognizer en-US FP Model V8",
233-
System.getenv("MODEL_KEY"));
233+
System.getenv("EMBEDDED_SPEECH_MODEL_LICENSE"));
234234
235235
// For text to speech
236236
embeddedSpeechConfig.setSpeechSynthesisVoice(
237237
"Microsoft Server Speech Text to Speech Voice (en-US, JennyNeural)",
238-
System.getenv("VOICE_KEY"));
238+
System.getenv("EMBEDDED_SPEECH_MODEL_LICENSE"));
239239
embeddedSpeechConfig.setSpeechSynthesisOutputFormat(SpeechSynthesisOutputFormat.Riff24Khz16BitMonoPcm);
240240
```
241241

0 commit comments

Comments
 (0)