You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If no host is passed into SpeechSynthesizer(accessToken:host:), the fallback hostname should be either api.mapbox.com or api.mapbox.cn depending on the value of MGLMapboxAPIBaseURL in Info.plist:
This will make it easier for developers to keep their map, directions, and spoken instructions in sync, since SpeechSynthesizer.shared would automatically pick up the API endpoint specified in Info.plist. Developers who need a different value for the speech synthesizer can still override the API base URL when creating a separate SpeechSynthesizer instance.
So the solution is now we choose a Chinese TTS service inside China and only make a subclass of RouteVoiceController to custom the voice controller. This swift file can be given to our customers to help them make a custom TTS voice controller quickly.
For further steps, we should setup api voice .cn and integrate Chinese TTS service inside China. So I think, this issue should be fixed after the api-voice China ready. @1ec5
If no
host
is passed intoSpeechSynthesizer(accessToken:host:)
, the fallback hostname should be either api.mapbox.com or api.mapbox.cn depending on the value ofMGLMapboxAPIBaseURL
in Info.plist:mapbox-speech-swift/MapboxSpeech/MapboxSpeech.swift
Line 96 in b016385
This would be consistent with how we read the access token out of Info.plist:
mapbox-speech-swift/MapboxSpeech/MapboxSpeech.swift
Line 89 in b016385
This will make it easier for developers to keep their map, directions, and spoken instructions in sync, since
SpeechSynthesizer.shared
would automatically pick up the API endpoint specified in Info.plist. Developers who need a different value for the speech synthesizer can still override the API base URL when creating a separateSpeechSynthesizer
instance./ref mapbox/MapboxGeocoder.swift#107
/cc @m-stephen @bsudekum
The text was updated successfully, but these errors were encountered: