|
63 | 63 | CONFIG_SEARCH_CLIENT, |
64 | 64 | CONFIG_SEMANTIC_RANKER_DEPLOYED, |
65 | 65 | CONFIG_SPEECH_INPUT_ENABLED, |
66 | | - CONFIG_SPEECH_OUTPUT_ENABLED, |
| 66 | + CONFIG_SPEECH_OUTPUT_AZURE_ENABLED, |
| 67 | + CONFIG_SPEECH_OUTPUT_BROWSER_ENABLED, |
67 | 68 | CONFIG_SPEECH_SERVICE_ID, |
68 | 69 | CONFIG_SPEECH_SERVICE_LOCATION, |
69 | 70 | CONFIG_SPEECH_SERVICE_TOKEN, |
@@ -245,7 +246,8 @@ def config(): |
245 | 246 | "showVectorOption": current_app.config[CONFIG_VECTOR_SEARCH_ENABLED], |
246 | 247 | "showUserUpload": current_app.config[CONFIG_USER_UPLOAD_ENABLED], |
247 | 248 | "showSpeechInput": current_app.config[CONFIG_SPEECH_INPUT_ENABLED], |
248 | | - "showSpeechOutput": current_app.config[CONFIG_SPEECH_OUTPUT_ENABLED], |
| 249 | + "showSpeechOutputBrowser": current_app.config[CONFIG_SPEECH_OUTPUT_BROWSER_ENABLED], |
| 250 | + "showSpeechOutputAzure": current_app.config[CONFIG_SPEECH_OUTPUT_AZURE_ENABLED], |
249 | 251 | } |
250 | 252 | ) |
251 | 253 |
|
@@ -405,6 +407,7 @@ async def setup_clients(): |
405 | 407 | USE_GPT4V = os.getenv("USE_GPT4V", "").lower() == "true" |
406 | 408 | USE_USER_UPLOAD = os.getenv("USE_USER_UPLOAD", "").lower() == "true" |
407 | 409 | USE_SPEECH_INPUT_BROWSER = os.getenv("USE_SPEECH_INPUT_BROWSER", "").lower() == "true" |
| 410 | + USE_SPEECH_OUTPUT_BROWSER = os.getenv("USE_SPEECH_OUTPUT_BROWSER", "").lower() == "true" |
408 | 411 | USE_SPEECH_OUTPUT_AZURE = os.getenv("USE_SPEECH_OUTPUT_AZURE", "").lower() == "true" |
409 | 412 |
|
410 | 413 | # Use the current user identity to authenticate with Azure OpenAI, AI Search and Blob Storage (no secrets needed, |
@@ -536,7 +539,8 @@ async def setup_clients(): |
536 | 539 | current_app.config[CONFIG_VECTOR_SEARCH_ENABLED] = os.getenv("USE_VECTORS", "").lower() != "false" |
537 | 540 | current_app.config[CONFIG_USER_UPLOAD_ENABLED] = bool(USE_USER_UPLOAD) |
538 | 541 | current_app.config[CONFIG_SPEECH_INPUT_ENABLED] = USE_SPEECH_INPUT_BROWSER |
539 | | - current_app.config[CONFIG_SPEECH_OUTPUT_ENABLED] = USE_SPEECH_OUTPUT_AZURE |
| 542 | + current_app.config[CONFIG_SPEECH_OUTPUT_BROWSER_ENABLED] = USE_SPEECH_OUTPUT_BROWSER |
| 543 | + current_app.config[CONFIG_SPEECH_OUTPUT_AZURE_ENABLED] = USE_SPEECH_OUTPUT_AZURE |
540 | 544 |
|
541 | 545 | # Various approaches to integrate GPT and external knowledge, most applications will use a single one of these patterns |
542 | 546 | # or some derivative, here we include several for exploration purposes |
|
0 commit comments