select-option
                Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| select-option [2021/10/25 17:14] – admin | select-option [2023/04/23 15:52] (current) – admin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | <code> | + | This is all from / | 
| + | <Code> | ||
| $.post("/ | $.post("/ | ||
| { | { | ||
| Line 22: | Line 23: | ||
| }); | }); | ||
| - | </code> | + | </Code> | 
| The result comes back as a object: | The result comes back as a object: | ||
| {{:: | {{:: | ||
| + | |||
| + | t.py code to generate the " | ||
| + | |||
| + | < | ||
| + | if action == " | ||
| + | voices = text_to_speech.list_voices().get_result() | ||
| + | v = voices[' | ||
| + | persons = {} | ||
| + | for x in v: | ||
| + | name=x[' | ||
| + | description = x[' | ||
| + | language = x[' | ||
| + | if language.startswith(' | ||
| + | nam = re.split(":", | ||
| + | persons[nam[0]]=name | ||
| + | jo = json.dumps(persons) | ||
| + | print(jo) | ||
| + | </ | ||
select-option.1635174887.txt.gz · Last modified: 2021/10/25 17:14 by admin
                
                