0

I want to know that SSML can be used with "name_synonym" of action.devices.Toggle or action.devices.traits.Mode.

https://developers.google.com/assistant/smarthome/traits/modes

{ "availableModes": [{ "name": "load", "name_values": [{ "name_synonym": ["load", "size", "load size"], "lang": "en" }],

pcc10
  • 3
  • 1
  • Perhaps you can clarify your question a bit more regarding what you are trying to achieve? SSML is generally used to programmatically determine how to generate speech output responses. The name values provided to a Modes trait are used to determine the grammar Google Assistant will parse from the user's speech input. – devunwired Nov 25 '19 at 16:00

1 Answers1

0

No, SSML cannot be used as a name_synonym. The synonyms are used to map possible words or phrases the user says to a central key. So, the user may say "load", "size", etc. and you will get "load" on the backend.

As SSML is used for speech synthesis, not speech input, it would not be feasible to have SSML as one of the possible synonyms.

Nick Felker
  • 11,536
  • 1
  • 21
  • 35