Azure-Samples / Azure-Samples/nlp-sql-in-a-box
Error while running the src.app
- Dominant language
- Python
- Stars
- 38
- Forks
- 19
- PR merge metrics
- No merged PRs in 30d
Description
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "C:\Users\vipottur\Documents\nlp-sql-in-a-box\src\app.py", line 54, in
asyncio.run(main())
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.2800.0_x64__qbz5n2kfra8p0\Lib\asyncio\runners.py", line 195, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.2800.0_x64__qbz5n2kfra8p0\Lib\asyncio\runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.2800.0_x64__qbz5n2kfra8p0\Lib\asyncio\base_events.py", line 691, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "C:\Users\\Documents\nlp-sql-in-a-box\src\app.py", line 37, in main
speech_service = Speech(credential=credential, resource_id=speech_service_id, region=azure_location)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\\Documents\nlp-sql-in-a-box\src\speech\service.py", line 17, in __init__
speech_config = SpeechConfig(auth_token=auth_token, region=region, speech_recognition_language="en-US")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\azure\cognitiveservices\speech\speech.py", line 85, in __init__
raise ValueError(generic_error_message)
ValueError: cannot construct SpeechConfig with the given arguments
Unable to view the keys of AOAI,Speech service from the portal after one click deployment of this repo.
Contributor guide
Assessment
This issue has not been assessed yet.