Azure / Azure/azure-sdk-for-python
[Speech SDK] Speech SDK log abort process for audio containing "30% next year."
- Dominant language
- Python
- Stars
- 5.6k
- Forks
- 3.4k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 193
Description
- **Package Name**: azure-cognitiveservices-speech
- **Package Version**: azure-cognitiveservices-speech = "^1.45.0", even reproducible on 1.46.0
- **Operating System**: Reproducible both on Debian GNU/Linux 13, macOS 15.7 (24G222)
- **Python Version**: python = "^3.12"
**Describe the bug**
When using the Azure Speech SDK for Python to perform speech-to-text (STT) on a WAV file or live audio stream, the process gets aborted if audio contains text like **"30% next year".**
Crash Message in deployment:
```
*** %n in writable segment detected ***
Worker (pid:XXX) was sent code 134!
```
Crash Message for dummy minimal code on macos
```
poetry run python test_dummy.py
zsh: abort poetry run python test_dummy.py
```
**To Reproduce**
Create Python file with Azure Speech config, Enable Speech SDK Log, Give audio file which has content like "30% next year." Then Your process will be aborted, but if you disable SDK log or give some different audio, process will work smoothly.
Minimal code:
```python
import azure.cognitiveservices.speech as speechsdk
speech_config = speechsdk.SpeechConfig(
subscription=AZURE_SPEECH_KEY, region=AZURE_SPEECH_REGION
)
speech_config.set_property(speechsdk.PropertyId.Speech_LogFilename, "speechsdk.log")
speech_config.set_property(
speechsdk.PropertyId.SpeechServiceConnection_LanguageIdMode, "Continuous"
)
# audio_config = speechsdk.audio.AudioConfig(filename="greeting.wav")
audio_config = speechsdk.audio.AudioConfig(filename="percent_new_line.wav")
recognizer = speechsdk.SpeechRecognizer(speech_config, audio_config)
result = recognizer.recognize_once() # blocks until done
# if result.reason == speechsdk.ResultReason.RecognizedSpeech:
# print("recognized:", result.text)
# else:
# print("failed:", result.reason, getattr(result, "cancellation_details", None))
```
**Expected behavior**
Process should not crash, For now, we disabled SDK logging in deployment as its not needed. But better to get this issue resolved.
**Screenshots**
Logs:
On Mac, in running process
```
khushboo.kumari@LT4122444294 project-nova-be % poetry run python test_dummy.py
zsh: abort poetry run python test_dummy.py
```
On Linux, in running process
```
2025-10-08T08:35:42.648569Z [info ] Starting recognition result processing loop
*** %n in writable segment detected ***
[2025-10-08 08:35:57 +0000] [17] [ERROR] Worker (pid:125) was sent code 134!
[2025-10-08 08:35:57 +0000] [206] [INFO] Booting worker with pid: 206
```
Speech SDK logs
```
[117525]: 2311ms SPX_DBG_TRACE_FUNCTION: recognition_result.cpp:26 CSpxRecognitionResult
[117525]: 2311ms SPX_DBG_TRACE_VERBOSE: resource_manager.cpp:129 Created 'CSpxRecognitionResult' as '175439361'
[117525]: 2311ms SPX_TRACE_VERBOSE: recognition_result.cpp:79 InitIntermediateResult: resultId=0e5af54081864caf85b3befe5dfc0497
[117525]: 2311ms SPX_DBG_TRACE_VERBOSE: named_properties.h:483 ISpxPropertyBagImpl::SetStringValue: this=0x0x0000012b6810c0; name='RESULT-Json'; value='{"Id":"0e5af54081864caf85b3befe5dfc0497","Text":"if price","Offset":700000,"Duration":6500000,"PrimaryLanguage":{"Language":"en-us"},"Channel":0}'
[117525]: 2311ms SPX_DBG_TRACE_VERBOSE: named_properties.h:483 ISpxPropertyBagImpl::SetStringValue: this=0x0x0000012b6810c0; name='RESULT-RecognitionBackend'; value='online'
[117525]: 2311ms SPX_DBG_TRACE_VERBOSE: named_properties.h:483 ISpxPropertyBagImpl::SetStringValue: this=0x0x0000012b6810c0; name='Auto-Detect-Source-Language-Result'; value='en-us'
[117525]: 2311ms SPX_DBG_TRACE_VERBOSE: named_properties.h:483 ISpxPropertyBagImpl::SetStringValue: this=0x0x0000012b6810c0; name='SpeechServiceResponse_IsTentativePhrase'; value='false'
[117525]: 2311ms SPX_DBG_TRACE_VERBOSE: named_properties.h:483 ISpxNamedProperties::GetStringValue: this=0x0x0000012b6810c0; name='RESULT-Json'; value='{"Id":"0e5af54081864caf85b3befe5dfc0497","Text":"if price","Offset":700000,"Duration":6500000,"PrimaryLanguage":{"Language":"en-us"},"Channel":0}'
[117525]: 2311ms SPX_DBG_TRACE_VERBOSE: reco_engine_adapter_helpers.cpp:46 UpdateServiceResponseJsonResult: before update: json='{"Id":"0e5af54081864caf85b3befe5dfc0497","Text":"if price","Offset":700000,"Duration":6500000,"PrimaryLanguage":{"Language":"en-us"},"Channel":0}'
[117525]: 2311ms SPX_DBG_TRACE_VERBOSE: named_properties.h:483 ISpxNamedProperties::GetStringValue: this=0x0x0000011c86fa90; name='AudioConfig_AudioSource'; value='File'
[117525]: 2311ms SPX_DBG_TRACE_VERBOSE: named_properties.h:483 ISpxPropertyBagImpl::SetStringValue: this=0x0x0000012b6810c0; name='RESULT-RecognitionLatencyMs'; value='1755'
[117525]: 2311ms SPX_DBG_TRACE_VERBOSE: audio_stream_session.cpp:2378 Storing intermediate result for possible promotion.
[117525]: 2311ms SPX_DBG_TRACE_VERBOSE: audio_stream_session.cpp:1595 [0x11c86fa00]CSpxAudioStreamSession::FireResultEvent
[444560]: 2311ms SPX_DBG_TRACE_SCOPE_ENTER: audio_stream_session.cpp:1752 DispatchEvent task started...
[444560]: 2311ms SPX_DBG_TRACE_SCOPE_ENTER: recognizer.cpp:348 FireResultEvent
[444560]: 2311ms SPX_DBG_TRACE_VERBOSE: recognizer.cpp:403 No listener connected to event
[444560]: 2311ms SPX_DBG_TRACE_SCOPE_EXIT: recognizer.cpp:348 FireResultEvent
[444560]: 2311ms SPX_DBG_TRACE_SCOPE_EXIT: audio_stream_session.cpp:1752 DispatchEvent task complete!
[117525]: 2358ms SPX_TRACE_VERBOSE: web_socket.cpp:671 [0x0x11c86e800] Web socket send message completed. Result: 0, SendTime: 569ms, IsBinary: 1, Path: audio, Size:3316 B
[117525]: 2367ms SPX_TRACE_VERBOSE: web_socket.cpp:671 [0x0x11c86e800] Web socket send message completed. Result: 0, SendTime: 578ms, IsBinary: 1, Path: audio, Size:3316 B
[117525]: 2379ms SPX_TRACE_VERBOSE: web_socket.cpp:671 [0x0x11c86e800] Web socket send message completed. Result: 0, SendTime: 589ms, IsBinary: 1, Path: audio, Size:3316 B
[117525]: 2390ms SPX_TRACE_VERBOSE: web_socket.cpp:671 [0x0x11c86e800] Web socket send message completed. Result: 0, SendTime: 601ms, IsBinary: 1, Path: audio, Size:3316 B
[117525]: 2402ms SPX_TRACE_VERBOSE: usp_web_socket.cpp:210 USP message received. IsBinary=0, Path=speech.hypothesis, Size=271 B, Time=2025-10-09T10:50:58.8291120Z
[117525]: 2402ms SPX_DBG_TRACE_VERBOSE: audio_stream_session.cpp:1526 [0x11c86fa00]CSpxAudioStreamSession::FireConnectionMessageReceived; path=speech.hypothesis
[117525]: 2402ms SPX_TRACE_INFO: usp_connection.cpp:1066 Response Message: content type: application/json; charset=utf-8.
[117525]: 2402ms SPX_TRACE_INFO: usp_connection.cpp:1091 TS:1847 Response Message: path: speech.hypothesis, size: 153.
[117525]: 2402ms SPX_DBG_TRACE_VERBOSE: uspimpl.h:96 Got language en-us from speech.hypothesis message.
[117525]: 2402ms SPX_DBG_TRACE_VERBOSE: usp_reco_engine_adapter.cpp:1448 Response: Speech.Hypothesis message. Starts at offset 700000, with duration 10500000 (100ns). Text: if price raises
[117525]: 2402ms SPX_DBG_TRACE_VERBOSE: usp_reco_engine_adapter.cpp:1456 OnSpeechHypothesis: site->FireAdapterResult_Intermediate()
[117525]: 2402ms SPX_DBG_TRACE_FUNCTION: recognition_result.cpp:26 CSpxRecognitionResult
[117525]: 2402ms SPX_DBG_TRACE_VERBOSE: resource_manager.cpp:129 Created 'CSpxRecognitionResult' as '175439361'
[117525]: 2402ms SPX_TRACE_VERBOSE: recognition_result.cpp:79 InitIntermediateResult: resultId=b6f68fe3e5bc45f8b4cad1b286fbd655
[117525]: 2402ms SPX_DBG_TRACE_VERBOSE: named_properties.h:483 ISpxPropertyBagImpl::SetStringValue: this=0x0x000001037739b0; name='RESULT-Json'; value='{"Id":"b6f68fe3e5bc45f8b4cad1b286fbd655","Text":"if price raises","Offset":700000,"Duration":10500000,"PrimaryLanguage":{"Language":"en-us"},"Channel":0}'
[117525]: 2403ms SPX_DBG_TRACE_VERBOSE: named_properties.h:483 ISpxPropertyBagImpl::SetStringValue: this=0x0x000001037739b0; name='RESULT-RecognitionBackend'; value='online'
[117525]: 2403ms SPX_DBG_TRACE_VERBOSE: named_properties.h:483 ISpxPropertyBagImpl::SetStringValue: this=0x0x000001037739b0; name='Auto-Detect-Source-Language-Result'; value='en-us'
[117525]: 2403ms SPX_DBG_TRACE_VERBOSE: named_properties.h:483 ISpxPropertyBagImpl::SetStringValue: this=0x0x000001037739b0; name='SpeechServiceResponse_IsTentativePhrase'; value='false'
[117525]: 2403ms SPX_DBG_TRACE_VERBOSE: named_properties.h:483 ISpxNamedProperties::GetStringValue: this=0x0x000001037739b0; name='RESULT-Json'; value='{"Id":"b6f68fe3e5bc45f8b4cad1b286fbd655","Text":"if price raises","Offset":700000,"Duration":10500000,"PrimaryLanguage":{"Language":"en-us"},"Channel":0}'
[117525]: 2403ms SPX_DBG_TRACE_VERBOSE: reco_engine_adapter_helpers.cpp:46 UpdateServiceResponseJsonResult: before update: json='{"Id":"b6f68fe3e5bc45f8b4cad1b286fbd655","Text":"if price raises","Offset":700000,"Duration":10500000,"PrimaryLanguage":{"Language":"en-us"},"Channel":0}'
[117525]: 2403ms SPX_DBG_TRACE_VERBOSE: named_properties.h:483 ISpxNamedProperties::GetStringValue: this=0x0x0000011c86fa90; name='AudioConfig_AudioSource'; value='File'
[117525]: 2403ms SPX_DBG_TRACE_VERBOSE: named_properties.h:483 ISpxPropertyBagImpl::SetStringValue: this=0x0x000001037739b0; name='RESULT-RecognitionLatencyMs'; value='1846'
[117525]: 2403ms SPX_DBG_TRACE_VERBOSE: audio_stream_session.cpp:2378 Storing intermediate result for possible promotion.
[117525]: 2403ms SPX_DBG_TRACE_FUNCTION: recognition_result.cpp:31 ~CSpxRecognitionResult
[117525]: 2403ms SPX_DBG_TRACE_VERBOSE: audio_stream_session.cpp:1595 [0x11c86fa00]CSpxAudioStreamSession::FireResultEvent
[444560]: 2403ms SPX_DBG_TRACE_SCOPE_ENTER: audio_stream_session.cpp:1752 DispatchEvent task started...
[444560]: 2403ms SPX_DBG_TRACE_SCOPE_ENTER: recognizer.cpp:348 FireResultEvent
[444560]: 2403ms SPX_DBG_TRACE_VERBOSE: recognizer.cpp:403 No listener connected to event
[444560]: 2403ms SPX_DBG_TRACE_SCOPE_EXIT: recognizer.cpp:348 FireResultEvent
[444560]: 2403ms SPX_DBG_TRACE_SCOPE_EXIT: audio_stream_session.cpp:1752 DispatchEvent task complete!
[117525]: 2403ms SPX_TRACE_VERBOSE: web_socket.cpp:671 [0x0x11c86e800] Web socket send message completed. Result: 0, SendTime: 613ms, IsBinary: 1, Path: audio, Size:3316 B
[117525]: 2414ms SPX_TRACE_VERBOSE: web_socket.cpp:671 [0x0x11c86e800] Web socket send message completed. Result: 0, SendTime: 625ms, IsBinary: 1, Path: audio, Size:3316 B
[117525]: 2425ms SPX_TRACE_VERBOSE: web_socket.cpp:671 [0x0x11c86e800] Web socket send message completed. Result: 0, SendTime: 636ms, IsBinary: 1, Path: audio, Size:3316 B
[117525]: 2437ms SPX_TRACE_VERBOSE: web_socket.cpp:671 [0x0x11c86e800] Web socket send message completed. Result: 0, SendTime: 638ms, IsBinary: 1, Path: audio, Size:3316 B
[117525]: 2448ms SPX_TRACE_VERBOSE: web_socket.cpp:671 [0x0x11c86e800] Web socket send message completed. Result: 0, SendTime: 649ms, IsBinary: 1, Path: audio, Size:3316 B
[117525]: 2459ms SPX_TRACE_VERBOSE: web_socket.cpp:671 [0x0x11c86e800] Web socket send message completed. Result: 0, SendTime: 660ms, IsBinary: 1, Path: audio, Size:3316 B
[117525]: 2471ms SPX_TRACE_VERBOSE: web_socket.cpp:671 [0x0x11c86e800] Web socket send message completed. Result: 0, SendTime: 671ms, IsBinary: 1, Path: audio, Size:3316 B
[117525]: 2482ms SPX_TRACE_VERBOSE: web_socket.cpp:671 [0x0x11c86e800] Web socket send message completed. Result: 0, SendTime: 683ms, IsBinary: 1, Path: audio, Size:3316 B
[117525]: 2493ms SPX_TRACE_VERBOSE: web_socket.cpp:671 [0x0x11c86e800] Web socket send message completed. Result: 0, SendTime: 694ms, IsBinary: 1, Path: audio, Size:3316 B
[117525]: 2503ms SPX_TRACE_VERBOSE: web_socket.cpp:671 [0x0x11c86e800] Web socket send message completed. Result: 0, SendTime: 704ms, IsBinary: 1, Path: audio, Size:2292 B
[117525]: 2514ms SPX_TRACE_VERBOSE: usp_web_socket.cpp:210 USP message received. IsBinary=0, Path=speech.hypothesis, Size=277 B, Time=2025-10-09T10:50:58.9404220Z
[117525]: 2514ms SPX_DBG_TRACE_VERBOSE: audio_stream_session.cpp:1526 [0x11c86fa00]CSpxAudioStreamSession::FireConnectionMessageReceived; path=speech.hypothesis
[117525]: 2514ms SPX_TRACE_INFO: usp_connection.cpp:1066 Response Message: content type: application/json; charset=utf-8.
[117525]: 2514ms SPX_TRACE_INFO: usp_connection.cpp:1091 TS:1958 Response Message: path: speech.hypothesis, size: 159.
[117525]: 2514ms SPX_DBG_TRACE_VERBOSE: uspimpl.h:96 Got language en-us from speech.hypothesis message.
[117525]: 2514ms SPX_DBG_TRACE_VERBOSE: usp_reco_engine_adapter.cpp:1448 Response: Speech.Hypothesis message. Starts at offset 700000, with duration 16900000 (100ns). Text: if price raises by 30
[117525]: 2514ms SPX_DBG_TRACE_VERBOSE: usp_reco_engine_adapter.cpp:1456 OnSpeechHypothesis: site->FireAdapterResult_Intermediate()
[117525]: 2514ms SPX_DBG_TRACE_FUNCTION: recognition_result.cpp:26 CSpxRecognitionResult
[117525]: 2514ms SPX_DBG_TRACE_VERBOSE: resource_manager.cpp:129 Created 'CSpxRecognitionResult' as '175439361'
[117525]: 2514ms SPX_TRACE_VERBOSE: recognition_result.cpp:79 InitIntermediateResult: resultId=d18f77f46b4f47b5af42ee869e59ca7f
[117525]: 2514ms SPX_DBG_TRACE_VERBOSE: named_properties.h:483 ISpxPropertyBagImpl::SetStringValue: this=0x0x00000118e05220; name='RESULT-Json'; value='{"Id":"d18f77f46b4f47b5af42ee869e59ca7f","Text":"if price raises by 30","Offset":700000,"Duration":16900000,"PrimaryLanguage":{"Language":"en-us"},"Channel":0}'
[117525]: 2514ms SPX_DBG_TRACE_VERBOSE: named_properties.h:483 ISpxPropertyBagImpl::SetStringValue: this=0x0x00000118e05220; name='RESULT-RecognitionBackend'; value='online'
[117525]: 2514ms SPX_DBG_TRACE_VERBOSE: named_properties.h:483 ISpxPropertyBagImpl::SetStringValue: this=0x0x00000118e05220; name='Auto-Detect-Source-Language-Result'; value='en-us'
[117525]: 2514ms SPX_DBG_TRACE_VERBOSE: named_properties.h:483 ISpxPropertyBagImpl::SetStringValue: this=0x0x00000118e05220; name='SpeechServiceResponse_IsTentativePhrase'; value='false'
[117525]: 2514ms SPX_DBG_TRACE_VERBOSE: named_properties.h:483 ISpxNamedProperties::GetStringValue: this=0x0x00000118e05220; name='RESULT-Json'; value='{"Id":"d18f77f46b4f47b5af42ee869e59ca7f","Text":"if price raises by 30","Offset":700000,"Duration":16900000,"PrimaryLanguage":{"Language":"en-us"},"Channel":0}'
[117525]: 2514ms SPX_DBG_TRACE_VERBOSE: reco_engine_adapter_helpers.cpp:46 UpdateServiceResponseJsonResult: before update: json='{"Id":"d18f77f46b4f47b5af42ee869e59ca7f","Text":"if price raises by 30","Offset":700000,"Duration":16900000,"PrimaryLanguage":{"Language":"en-us"},"Channel":0}'
[117525]: 2514ms SPX_DBG_TRACE_VERBOSE: named_properties.h:483 ISpxNamedProperties::GetStringValue: this=0x0x0000011c86fa90; name='AudioConfig_AudioSource'; value='File'
[117525]: 2514ms SPX_DBG_TRACE_VERBOSE: named_properties.h:483 ISpxPropertyBagImpl::SetStringValue: this=0x0x00000118e05220; name='RESULT-RecognitionLatencyMs'; value='1958'
[117525]: 2515ms SPX_DBG_TRACE_VERBOSE: audio_stream_session.cpp:2378 Storing intermediate result for possible promotion.
[117525]: 2515ms SPX_DBG_TRACE_FUNCTION: recognition_result.cpp:31 ~CSpxRecognitionResult
[117525]: 2515ms SPX_DBG_TRACE_VERBOSE: audio_stream_session.cpp:1595 [0x11c86fa00]CSpxAudioStreamSession::FireResultEvent
[444560]: 2515ms SPX_DBG_TRACE_SCOPE_ENTER: audio_stream_session.cpp:1752 DispatchEvent task started...
[117525]: 2515ms SPX_TRACE_VERBOSE: web_socket.cpp:671 [0x0x11c86e800] Web socket send message completed. Result: 0, SendTime: 715ms, IsBinary: 1, Path: audio, Size:116 B
[444560]: 2515ms SPX_DBG_TRACE_SCOPE_ENTER: recognizer.cpp:348 FireResultEvent
[444560]: 2515ms SPX_DBG_TRACE_VERBOSE: recognizer.cpp:403 No listener connected to event
[444560]: 2515ms SPX_DBG_TRACE_SCOPE_EXIT: recognizer.cpp:348 FireResultEvent
[444560]: 2515ms SPX_DBG_TRACE_SCOPE_EXIT: audio_stream_session.cpp:1752 DispatchEvent task complete!
[117525]: 2708ms SPX_TRACE_VERBOSE: usp_web_socket.cpp:210 USP message received. IsBinary=0, Path=speech.hypothesis, Size=288 B, Time=2025-10-09T10:50:59.1347110Z
[117525]: 2708ms SPX_DBG_TRACE_VERBOSE: audio_stream_session.cpp:1526 [0x11c86fa00]CSpxAudioStreamSession::FireConnectionMessageReceived; path=speech.hypothesis
[117525]: 2708ms SPX_TRACE_INFO: usp_connection.cpp:1066 Response Message: content type: application/json; charset=utf-8.
[117525]: 2708ms SPX_TRACE_INFO: usp_connection.cpp:1091 TS:2152 Response Message: path: speech.hypothesis, size: 170.
[117525]: 2708ms SPX_DBG_TRACE_VERBOSE: uspimpl.h:96 Got language en-us from speech.hypothesis message.
[117525]: 2708ms SPX_DBG_TRACE_VERBOSE: usp_reco_engine_adapter.cpp:1448 Response: Speech.Hypothesis message. Starts at offset 700000, with duration 26500000 (100ns). Text: if price raises by 30% next year
[117525]: 2708ms SPX_DBG_TRACE_VERBOSE: usp_reco_engine_adapter.cpp:1456 OnSpeechHypothesis: site->FireAdapterResult_Intermediate()
[117525]: 2708ms SPX_DBG_TRACE_FUNCTION: recognition_result.cpp:26 CSpxRecognitionResult
[117525]: 2709ms SPX_DBG_TRACE_VERBOSE: resource_manager.cpp:129 Created 'CSpxRecognitionResult' as '175439361'
[117525]: 2709ms SPX_TRACE_VERBOSE: recognition_result.cpp:79 InitIntermediateResult: resultId=2cc3320d82234a34a6ee1f7debca5bb5
[117525]: 2709ms SPX_DBG_TRACE_VERBOSE: named_properties.h:483 ISpxPropertyBagImpl::SetStringValue: this=0x0x00000118e05670; name='RESULT-Json'; value='{"Id":"2cc3320d82234a34a6ee1f7debca5bb5","Text":"if price raises by 30% next year","Offset":700000,"Duration":26500000,"PrimaryLanguage":{"Language":"en-us"},"Channel":0}'
[117525]: 2709ms SPX_DBG_TRACE_VERBOSE: named_properties.h:483 ISpxPropertyBagImpl::SetStringValue: this=0x0x00000118e05670; name='RESULT-RecognitionBackend'; value='online'
[117525]: 2709ms SPX_DBG_TRACE_VERBOSE: named_properties.h:483 ISpxPropertyBagImpl::SetStringValue: this=0x0x00000118e05670; name='Auto-Detect-Source-Language-Result'; value='en-us'
[117525]: 2709ms SPX_DBG_TRACE_VERBOSE: named_properties.h:483 ISpxPropertyBagImpl::SetStringValue: this=0x0x00000118e05670; name='SpeechServiceResponse_IsTentativePhrase'; value='false'
[117525]: 2709ms SPX_DBG_TRACE_VERBOSE: named_properties.h:483 ISpxNamedProperties::GetStringValue: this=0x0x00000118e05670; name='RESULT-Json'; value='{"Id":"2cc3320d82234a34a6ee1f7debca5bb5","Text":"if price raises by 30% next year","Offset":700000,"Duration":26500000,"PrimaryLanguage":{"Language":"en-us"},"Channel":0}'
[117525]: 2709ms SPX_DBG_TRACE_VERBOSE: reco_engine_adapter_helpers.cpp:46 UpdateServiceResponseJsonResult: before update: json='{"Id":"2cc3320d82234a34a6ee1f7debca5bb5","Text":"if price raises by 30% next year","Offset":700000,"Duration":26500000,"PrimaryLanguage":{"Language":"en-us"},"Channel":0}'
[117525]: 2709ms SPX_DBG_TRACE_VERBOSE: named_properties.h:483 ISpxNamedProperties::GetStringValue: this=0x0x0000011c86fa90; name='AudioConfig_AudioSource'; value='File'
[117525]: 2709ms SPX_DBG_TRACE_VERBOSE: named_properties.h:483 ISpxPropertyBagImpl::SetStringValue: this=0x0x00000118e05670; name='RESULT-RecognitionLatencyMs'; value='2152'
[117525]: 2709ms SPX_DBG_TRACE_VERBOSE: audio_stream_session.cpp:2378 Storing intermediate result for possible promotion.
[117525]: 2709ms SPX_DBG_TRACE_FUNCTION: recognition_result.cpp:31 ~CSpxRecognitionResult
[117525]: 2709ms SPX_DBG_TRACE_VERBOSE: audio_stream_session.cpp:1595 [0x11c86fa00]CSpxAudioStreamSession::FireResultEvent
[444560]: 2709ms SPX_DBG_TRACE_SCOPE_ENTER: audio_stream_session.cpp:1752 DispatchEvent task started...
[444560]: 2709ms SPX_DBG_TRACE_SCOPE_ENTER: recognizer.cpp:348 FireResultEvent
[444560]: 2709ms SPX_DBG_TRACE_VERBOSE: recognizer.cpp:403 No listener connected to event
[444560]: 2709ms SPX_DBG_TRACE_SCOPE_EXIT: recognizer.cpp:348 FireResultEvent
[444560]: 2709ms SPX_DBG_TRACE_SCOPE_EXIT: audio_stream_session.cpp:1752 DispatchEvent task complete!
[117525]: 2814ms SPX_TRACE_VERBOSE: usp_web_socket.cpp:210 USP message received. IsBinary=0, Path=speech.hypothesis, Size=301 B, Time=2025-10-09T10:50:59.2404400Z
[117525]: 2814ms SPX_DBG_TRACE_VERBOSE: audio_stream_session.cpp:1526 [0x11c86fa00]CSpxAudioStreamSession::FireConnectionMessageReceived; path=speech.hypothesis
[117525]: 2814ms SPX_TRACE_INFO: usp_connection.cpp:1066 Response Message: content type: application/json; charset=utf-8.
[117525]: 2814ms SPX_TRACE_INFO: usp_connection.cpp:1091 TS:2258 Response Message: path: speech.hypothesis, size: 183.
[117525]: 2814ms SPX_DBG_TRACE_VERBOSE: uspimpl.h:96 Got language en-us from speech.hypothesis message.
[117525]: 2814ms SPX_DBG_TRACE_VERBOSE: usp_reco_engine_adapter.cpp:1448 Response: Speech.Hypothesis message. Starts at offset 700000, with duration 34900000 (100ns). Text: if price raises by 30% next year what happens
[117525]: 2814ms SPX_DBG_TRACE_VERBOSE: usp_reco_engine_adapter.cpp:1456 OnSpeechHypothesis: site->FireAdapterResult_Intermediate()
[117525]: 2814ms SPX_DBG_TRACE_FUNCTION: recognition_result.cpp:26 CSpxRecognitionResult
[117525]: 2814ms SPX_DBG_TRACE_VERBOSE: resource_manager.cpp:129 Created 'CSpxRecognitionResult' as '175439361'
[117525]: 2814ms SPX_TRACE_VERBOSE: recognition_result.cpp:79 InitIntermediateResult: resultId=eecb1f2e148146d19e88b27881af6621
[117525]: 2814ms SPX_DBG_TRACE_VERBOSE: named_properties.h:483 ISpxPropertyBagImpl::SetStringValue: this=0x0x00000119907990; name='RESULT-Json'; value='{"Id":"eecb1f2e148146d19e88b27881af6621","Text":"if price raises by 30% next year what happens","Offset":700000,"Duration":34900000,"PrimaryLanguage":{"Language":"en-us"},"Channel":0}'
[117525]: 2814ms SPX_DBG_TRACE_VERBOSE: named_properties.h:483 ISpxPropertyBagImpl::SetStringValue: this=0x0x00000119907990; name='RESULT-RecognitionBackend'; value='online'
[117525]: 2814ms SPX_DBG_TRACE_VERBOSE: named_properties.h:483 ISpxPropertyBagImpl::SetStringValue: this=0x0x00000119907990; name='Auto-Detect-Source-Language-Result'; value='en-us'
[117525]: 2814ms SPX_DBG_TRACE_VERBOSE: named_properties.h:483 ISpxPropertyBagImpl::SetStringValue: this=0x0x00000119907990; name='SpeechServiceResponse_IsTentativePhrase'; value='false'
[117525]: 2815ms SPX_DBG_TRACE_VERBOSE: named_properties.h:483 ISpxNamedProperties::GetStringValue: this=0x0x00000119907990; name='RESULT-Json'; value='{"Id":"eecb1f2e148146d19e88b27881af6621","Text":"if price raises by 30% next year what happens","Offset":700000,"Duration":34900000,"PrimaryLanguage":{"Language":"en-us"},"Channel":0}'
[117525]: 2815ms SPX_DBG_TRACE_VERBOSE: reco_engine_adapter_helpers.cpp:46 UpdateServiceResponseJsonResult: before update: json='{"Id":"eecb1f2e148146d19e88b27881af6621","Text":"if price raises by 30% next year what happens","Offset":700000,"Duration":34900000,"PrimaryLanguage":{"Language":"en-us"},"Channel":0}'
[117525]: 2815ms SPX_DBG_TRACE_VERBOSE: named_properties.h:483 ISpxNamedProperties::GetStringValue: this=0x0x0000011c86fa90; name='AudioConfig_AudioSource'; value='File'
[117525]: 2815ms SPX_DBG_TRACE_VERBOSE: named_properties.h:483 ISpxPropertyBagImpl::SetStringValue: this=0x0x00000119907990; name='RESULT-RecognitionLatencyMs'; value='2257'
[117525]: 2815ms SPX_DBG_TRACE_VERBOSE: audio_stream_session.cpp:2378 Storing intermediate result for possible promotion.
[117525]: 2815ms SPX_DBG_TRACE_FUNCTION: recognition_result.cpp:31 ~CSpxRecognitionResult
[117525]: 2815ms SPX_DBG_TRACE_VERBOSE: audio_stream_session.cpp:1595 [0x11c86fa00]CSpxAudioStreamSession::FireResultEvent
[444560]: 2815ms SPX_DBG_TRACE_SCOPE_ENTER: audio_stream_session.cpp:1752 DispatchEvent task started...
[444560]: 2815ms SPX_DBG_TRACE_SCOPE_ENTER: recognizer.cpp:348 FireResultEvent
[444560]: 2815ms SPX_DBG_TRACE_VERBOSE: recognizer.cpp:403 No listener connected to event
[444560]: 2815ms SPX_DBG_TRACE_SCOPE_EXIT: recognizer.cpp:348 FireResultEvent
[444560]: 2815ms SPX_DBG_TRACE_SCOPE_EXIT: audio_stream_session.cpp:1752 DispatchEvent task complete!
[117525]: 2860ms SPX_TRACE_VERBOSE: usp_web_socket.cpp:210 USP message received. IsBinary=0, Path=speech.endDetected, Size=138 B, Time=2025-10-09T10:50:59.2868100Z
[117525]: 2860ms SPX_DBG_TRACE_VERBOSE: audio_stream_session.cpp:1526 [0x11c86fa00]CSpxAudioStreamSession::FireConnectionMessageReceived; path=speech.endDetected
[117525]: 2860ms SPX_TRACE_INFO: usp_connection.cpp:1066 Response Message: content type: application/json; charset=utf-8.
[117525]: 2860ms SPX_TRACE_INFO: usp_connection.cpp:1091 TS:2305 Response Message: path: speech.endDetected, size: 19.
[117525]: 2860ms SPX_DBG_TRACE_VERBOSE: usp_connection.cpp:1126 UspResponseMsg Path: speech.endDetected | msgBuffer: {"Offset":43700000}
[117525]: 2860ms SPX_DBG_TRACE_VERBOSE: usp_reco_engine_adapter.cpp:1415 Response: Speech.EndDetected message. Speech ends at offset 43700000 (100ns)
[117525]: 2861ms SPX_DBG_TRACE_VERBOSE: usp_reco_engine_adapter.cpp:3200 TryChangeState; audioState/uspState: 2/1200 => 9/1200
[117525]: 2861ms SPX_DBG_TRACE_VERBOSE: usp_reco_engine_adapter.cpp:1427 OnSpeechEndDetected: (0x0x118d04170) site->AdapterDetectedSpeechEnd()
[117525]: 2861ms SPX_DBG_TRACE_VERBOSE: audio_stream_session.cpp:1549 [0x11c86fa00]CSpxAudioStreamSession::FireSpeechEndDetectedEvent
[117525]: 2861ms SPX_DBG_TRACE_VERBOSE: usp_reco_engine_adapter.cpp:1436 OnSpeechEndDetected: Flush ... (audioState/uspState=9/1200) USP-FLUSH
[117525]: 2861ms SPX_TRACE_INFO: usp_connection.cpp:896 TS:2305, Flush audio buffer.
[117525]: 2861ms SPX_DBG_TRACE_VERBOSE: usp_reco_engine_adapter.cpp:1441 OnSpeechEndDetected: site->AdapterRequestingAudioMute(true) ... (audioState/uspState=9/1200)
[117525]: 2861ms SPX_DBG_TRACE_VERBOSE: audio_stream_session.cpp:2713 AdapterRequestingAudioMute: Skipping audio mute for last portion of data. recoKind/sessionState: 3/6
[444560]: 2861ms SPX_DBG_TRACE_SCOPE_ENTER: audio_stream_session.cpp:1752 DispatchEvent task started...
[444560]: 2861ms SPX_DBG_TRACE_VERBOSE: recognizer.cpp:403 No listener connected to event
[444560]: 2861ms SPX_DBG_TRACE_SCOPE_EXIT: audio_stream_session.cpp:1752 DispatchEvent task complete!
[117525]: 2872ms SPX_TRACE_VERBOSE: usp_web_socket.cpp:210 USP message received. IsBinary=0, Path=speech.phrase, Size=297 B, Time=2025-10-09T10:50:59.2989440Z
[117525]: 2872ms SPX_DBG_TRACE_VERBOSE: audio_stream_session.cpp:1526 [0x11c86fa00]CSpxAudioStreamSession::FireConnectionMessageReceived; path=speech.phrase
[117525]: 2872ms SPX_TRACE_INFO: usp_connection.cpp:1066 Response Message: content type: application/json; charset=utf-8.
[117525]: 2872ms SPX_TRACE_INFO: usp_connection.cpp:1091 TS:2317 Response Message: path: speech.phrase, size: 183.
```
**Additional context**
Already described everything above.
Contributor guide
Assessment
This issue has not been assessed yet.