Azure-Samples / Cognitive-Speech-STT-iOS

iOS SDK for the Microsoft Speech-to-Text API, part of Cognitive Services
https://www.microsoft.com/cognitive-services/en-us/speech-api
Other
49 stars 21 forks source link

initialization failed #38

Open WYCloud opened 6 years ago

WYCloud commented 6 years ago

Application Name: com.yipinapp.ioffice.iphone.appstore/1.0.1 STS: https://api.cognitive.microsoft.com/sts/v1.0/issueToken Refreshing token /sts/v1.0/issueToken Initializing Audio Services Initializing Speech Services No application id provided to controller GetIdentityPropertyValue 3 Useragent Value iOS Assistant (iOS; 10.2;Mobile;ProcessName/AppName=com.yipinapp.ioffice.iphone.appstore/1.0.1;DeviceType=Near;SpeechClient=1.0.161216) Url: 'https://websockets.platform.bing.com/ws/speech/recognize' Locale: 'en-us' Application Id: '' Version: 4.0.150429 UserAuthorizationToken: ServerLoggingLevel: 1 Initiating websocket connection. m_connection=0x0 host=websockets.platform.bing.com port=443 Auth token status: 200 Authorization token hr 0 'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzY29wZSI6Imh0dHBzOi8vZGV2Lm1pY3Jvc29mdHRyYW5zbGF0b3IuY29tLyIsInN1YnNjcmlwdGlvbi1pZCI6IjM4NWY1ZTQzYzE1ZDQ1YzM5NWMyOWU4ZGI3ZjVjMDg5IiwicHJvZHVjdC1pZCI6IlNwZWVjaFRyYW5zbGF0b3IuRjAiLCJjb2duaXRpdmUtc2VydmljZXMtZW5kcG9pbnQiOiJodHRwczovL2FwaS5jb2duaXRpdmUubWljcm9zb2Z0LmNvbS9pbnRlcm5hbC92MS4wLyIsImF6dXJlLXJlc291cmNlLWlkIjoiL3N1YnNjcmlwdGlvbnMvZmE5NmZlZGEtMDNiMC00NWMzLWI3YjgtOTIzOWY4MTNjZmMzL3Jlc291cmNlR3JvdXBzL3dvcmtkaWZmL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29nbml0aXZlU2VydmljZXMvYWNjb3VudHMvd29ya2RpZmYtc291bmQiLCJpc3MiOiJ1cm46bXMuY29nbml0aXZlc2VydmljZXMiLCJhdWQiOiJ1cm46bXMubWljcm9zb2Z0dHJhbnNsYXRvciIsImV4cCI6MTUxOTYzMjM2NH0.Sa4uHCQ8pgYJsPwCSqk2HFxbbcXWMPidlJLdNxXnCTk' Successfully initialized client connection Create ImpressionId: 3b799eb6680cd589dd60f4d771c3e914 Create ImpressionId: 3d6bbe82f31f148e950de2dc002ad024 Reset

Create ImpressionId: 2216d91d9b3731ee4ddcf64f0ff7dfff ImpressionId: f0bb8489c15a4ee0fbae9c2df2828a31 Adding requestId: '065c03b229312addc3f0a145bc40ac32' for 'text/cu.client.context' Subscribing request [065c03b229312addc3f0a145bc40ac32] Audio stream created Adding requestId: '24818226519ada6a45f4f52184a15a42' for 'audio/x-wav' Subscribing request [24818226519ada6a45f4f52184a15a42] Audio Stream Created Creating transcoder 2

Microphone permissions: 0 WebSocket closed unexpectedly, status: 0 Closing web socket channel Web socket channel closed (state = 0) CU Client connection dropped ConnectionStateChanged Upgrade request returned with HTTP status code: 403 Web socket handshake failed, hr=8E200002 web socket message delivery failed, hr=8E200002 Web socket channel already closed. Message: 'connection.context' has 4 remaining transmit attempts. Retrying message, name='connection.context' Initiating websocket connection. m_connection=0x1740ad7b8 host=websockets.platform.bing.com port=443 Authorization token hr 0 'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzY29wZSI6Imh0dHBzOi8vZGV2Lm1pY3Jvc29mdHRyYW5zbGF0b3IuY29tLyIsInN1YnNjcmlwdGlvbi1pZCI6IjM4NWY1ZTQzYzE1ZDQ1YzM5NWMyOWU4ZGI3ZjVjMDg5IiwicHJvZHVjdC1pZCI6IlNwZWVjaFRyYW5zbGF0b3IuRjAiLCJjb2duaXRpdmUtc2VydmljZXMtZW5kcG9pbnQiOiJodHRwczovL2FwaS5jb2duaXRpdmUubWljcm9zb2Z0LmNvbS9pbnRlcm5hbC92MS4wLyIsImF6dXJlLXJlc291cmNlLWlkIjoiL3N1YnNjcmlwdGlvbnMvZmE5NmZlZGEtMDNiMC00NWMzLWI3YjgtOTIzOWY4MTNjZmMzL3Jlc291cmNlR3JvdXBzL3dvcmtkaWZmL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29nbml0aXZlU2VydmljZXMvYWNjb3VudHMvd29ya2RpZmYtc291bmQiLCJpc3MiOiJ1cm46bXMuY29nbml0aXZlc2VydmljZXMiLCJhdWQiOiJ1cm46bXMubWljcm9zb2Z0dHJhbnNsYXRvciIsImV4cCI6MTUxOTYzMjM2NH0.Sa4uHCQ8pgYJsPwCSqk2HFxbbcXWMPidlJLdNxXnCTk' WSRequest

WebSocket closed unexpectedly, status: 0 Closing web socket channel Web socket channel closed (state = 0) CU Client connection dropped ConnectionStateChanged Upgrade request returned with HTTP status code: 403 Web socket handshake failed, hr=8E200002 web socket message delivery failed, hr=8E200002 Web socket channel already closed. Message: 'connection.context' has 3 remaining transmit attempts. Retrying message, name='connection.context' Initiating websocket connection. m_connection=0x1740ad7b8 host=websockets.platform.bing.com port=443 Authorization token hr 0 'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzY29wZSI6Imh0dHBzOi8vZGV2Lm1pY3Jvc29mdHRyYW5zbGF0b3IuY29tLyIsInN1YnNjcmlwdGlvbi1pZCI6IjM4NWY1ZTQzYzE1ZDQ1YzM5NWMyOWU4ZGI3ZjVjMDg5IiwicHJvZHVjdC1pZCI6IlNwZWVjaFRyYW5zbGF0b3IuRjAiLCJjb2duaXRpdmUtc2VydmljZXMtZW5kcG9pbnQiOiJodHRwczovL2FwaS5jb2duaXRpdmUubWljcm9zb2Z0LmNvbS9pbnRlcm5hbC92MS4wLyIsImF6dXJlLXJlc291cmNlLWlkIjoiL3N1YnNjcmlwdGlvbnMvZmE5NmZlZGEtMDNiMC00NWMzLWI3YjgtOTIzOWY4MTNjZmMzL3Jlc291cmNlR3JvdXBzL3dvcmtkaWZmL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ29nbml0aXZlU2VydmljZXMvYWNjb3VudHMvd29ya2RpZmYtc291bmQiLCJpc3MiOiJ1cm46bXMuY29nbml0aXZlc2VydmljZXMiLCJhdWQiOiJ1cm46bXMubWljcm9zb2Z0dHJhbnNsYXRvciIsImV4cCI6MTUxOTYzMjM2NH0.Sa4uHCQ8pgYJsPwCSqk2HFxbbcXWMPidlJLdNxXnCTk' WSRequest

我每次运行都是这个结果,您的demo中我只设置了key值和Id,前面是成功的但是到后面就出现Upgrade request returned with HTTP status code: 403,我不知道哪里出错了,希望您能指导一下,谢谢您