Skip to content

AOSP环境,SDK内部封装的websocket建立失败 #2811

@Asahi999

Description

@Asahi999

把SDK集成到app中,搭建在AOSP中,发生以下问题。
2025-04-15 14:28:37.987 7420-7420/com.microsoft.cognitiveservices.speech.samples.quickstart I/POC_Mic->String: 识别结果:
2025-04-15 14:28:37.988 7420-7420/com.microsoft.cognitiveservices.speech.samples.quickstart I/POC_Mic->String: 识别结果种类: Canceled
2025-04-15 14:28:37.989 7420-7420/com.microsoft.cognitiveservices.speech.samples.quickstart I/POC_Mic->String: CancellationReason:Error ErrorCode: ConnectionFailure ErrorDetails:Connection failed (no connection to the remote host). Internal error: 1. Error details: Failed with error: WS_OPEN_ERROR_UNDERLYING_IO_OPEN_FAILED
wss://eastasia.stt.speech.microsoft.com/stt/speech/universal/v2
X-ConnectionId: cb919958e33b4162a8cba3e27d7744d1

app中加入websocket连接测试代码去连接wss://eastasia.stt.speech.microsoft.com/stt/speech/universal/v2,连接正常。
请问我如何解决这个问题。

Metadata

Metadata

Assignees

Labels

update neededFor items that are in progress but have not been updated

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions