TTS
POST /services/tts/playtext
Play text on a device which supports audioNotification
Request
- Base URLhttps://api.smartthings.com/v1
- AuthOAuth 2Implicithttps://auth-global.api.smartthings.comScopesx:devices:*, mobile
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
Authorizationstring string required
OAuth token
Request body
Example request
{
"deviceId": "44dd1e8d-19df-5715-cd44-5cff17a552ee",
"text": "Hi Samsung SmartThings! This is the text to speech service",
"languageCode": "en-US",
"voiceId": "Matthew",
"audioFormat": "mp3",
"ttsProvider": "polly",
"engine": "neural",
"speakingStyle": "conversational",
"volume": 50
}Response
Success
Example response
{
"message": "Audio played on device successfully"
}Changes
No recorded changes to this operation across all 8 revisions of this API.