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