@@ -182,12 +182,12 @@ var embeddedSpeechConfig = EmbeddedSpeechConfig.FromPaths(paths.ToArray());
182
182
// For speech to text
183
183
embeddedSpeechConfig.SetSpeechRecognitionModel(
184
184
"Microsoft Speech Recognizer en-US FP Model V8",
185
- Environment.GetEnvironmentVariable("MODEL_KEY "));
185
+ Environment.GetEnvironmentVariable("EMBEDDED_SPEECH_MODEL_LICENSE "));
186
186
187
187
// For text to speech
188
188
embeddedSpeechConfig.SetSpeechSynthesisVoice(
189
189
"Microsoft Server Speech Text to Speech Voice (en-US, JennyNeural)",
190
- Environment.GetEnvironmentVariable("VOICE_KEY "));
190
+ Environment.GetEnvironmentVariable("EMBEDDED_SPEECH_MODEL_LICENSE "));
191
191
embeddedSpeechConfig.SetSpeechSynthesisOutputFormat(SpeechSynthesisOutputFormat.Riff24Khz16BitMonoPcm);
192
192
```
193
193
::: zone-end
@@ -207,12 +207,12 @@ auto embeddedSpeechConfig = EmbeddedSpeechConfig::FromPaths(paths);
207
207
// For speech to text
208
208
embeddedSpeechConfig->SetSpeechRecognitionModel ((
209
209
"Microsoft Speech Recognizer en-US FP Model V8",
210
- GetEnvironmentVariable("MODEL_KEY "));
210
+ GetEnvironmentVariable("EMBEDDED_SPEECH_MODEL_LICENSE "));
211
211
212
212
// For text to speech
213
213
embeddedSpeechConfig->SetSpeechSynthesisVoice(
214
214
"Microsoft Server Speech Text to Speech Voice (en-US, JennyNeural)",
215
- GetEnvironmentVariable("VOICE_KEY "));
215
+ GetEnvironmentVariable("EMBEDDED_SPEECH_MODEL_LICENSE "));
216
216
embeddedSpeechConfig->SetSpeechSynthesisOutputFormat(SpeechSynthesisOutputFormat::Riff24Khz16BitMonoPcm);
217
217
```
218
218
@@ -230,12 +230,12 @@ var embeddedSpeechConfig = EmbeddedSpeechConfig.fromPaths(paths);
230
230
// For speech to text
231
231
embeddedSpeechConfig.setSpeechRecognitionModel(
232
232
"Microsoft Speech Recognizer en-US FP Model V8",
233
- System.getenv("MODEL_KEY "));
233
+ System.getenv("EMBEDDED_SPEECH_MODEL_LICENSE "));
234
234
235
235
// For text to speech
236
236
embeddedSpeechConfig.setSpeechSynthesisVoice(
237
237
"Microsoft Server Speech Text to Speech Voice (en-US, JennyNeural)",
238
- System.getenv("VOICE_KEY "));
238
+ System.getenv("EMBEDDED_SPEECH_MODEL_LICENSE "));
239
239
embeddedSpeechConfig.setSpeechSynthesisOutputFormat(SpeechSynthesisOutputFormat.Riff24Khz16BitMonoPcm);
240
240
```
241
241
0 commit comments