Could you try this for initializing the SPXSpeechSynthesizer()? As per the STT sample this is the only difference I could spot that could fail the sample.
let synthesizer = try! SPXSpeechSynthesizer(speechConfiguration: speechConfig!)
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
2021-07-20 12:31:37.062639+0800 helloworld[6354:1734305] [connection] nw_endpoint_handler_set_adaptive_read_handler [C1.1 52.152.207.162:443 ready socket-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, ipv6, dns)] unregister notification for read_timeout failed
2021-07-20 12:31:37.062710+0800 helloworld[6354:1734305] [connection] nw_endpoint_handler_set_adaptive_write_handler [C1.1 52.152.207.162:443 ready socket-flow (satisfied (Path is satisfied), viable, interface: en0, ipv4, ipv6, dns)] unregister notification for write_timeout failed
Could you try this for initializing the SPXSpeechSynthesizer()? As per the STT sample this is the only difference I could spot that could fail the sample.
let synthesizer = try! SPXSpeechSynthesizer(speechConfiguration: speechConfig!)