|
23 | 23 | "model": { |
24 | 24 | "type": "string", |
25 | 25 | "enum": [ |
26 | | - "aura-2-amalthea-en", |
27 | | - "#g1_aura-2-amalthea-en", |
28 | | - "#g1_aura-2-andromeda-en", |
29 | | - "#g1_aura-2-apollo-en", |
30 | | - "#g1_aura-2-arcas-en", |
31 | | - "#g1_aura-2-aries-en", |
32 | | - "#g1_aura-2-asteria-en", |
33 | | - "#g1_aura-2-athena-en", |
34 | | - "#g1_aura-2-atlas-en", |
35 | | - "#g1_aura-2-aurora-en", |
36 | | - "#g1_aura-2-callista-en", |
37 | | - "#g1_aura-2-cora-en", |
38 | | - "#g1_aura-2-cordelia-en", |
39 | | - "#g1_aura-2-delia-en", |
40 | | - "#g1_aura-2-electra-en", |
41 | | - "#g1_aura-2-harmonia-en", |
42 | | - "#g1_aura-2-helena-en", |
43 | | - "#g1_aura-2-hera-en", |
44 | | - "#g1_aura-2-hermes-en", |
45 | | - "#g1_aura-2-hyperion-en", |
46 | | - "#g1_aura-2-iris-en", |
47 | | - "#g1_aura-2-janus-en", |
48 | | - "#g1_aura-2-juno-en", |
49 | | - "#g1_aura-2-jupiter-en", |
50 | | - "#g1_aura-2-luna-en", |
51 | | - "#g1_aura-2-mars-en", |
52 | | - "#g1_aura-2-minerva-en", |
53 | | - "#g1_aura-2-neptune-en", |
54 | | - "#g1_aura-2-odysseus-en", |
55 | | - "#g1_aura-2-ophelia-en", |
56 | | - "#g1_aura-2-orion-en", |
57 | | - "#g1_aura-2-orpheus-en", |
58 | | - "#g1_aura-2-pandora-en", |
59 | | - "#g1_aura-2-phoebe-en", |
60 | | - "#g1_aura-2-pluto-en", |
61 | | - "#g1_aura-2-saturn-en", |
62 | | - "#g1_aura-2-selene-en", |
63 | | - "#g1_aura-2-thalia-en", |
64 | | - "#g1_aura-2-theia-en", |
65 | | - "#g1_aura-2-vesta-en", |
66 | | - "#g1_aura-2-zeus-en", |
67 | | - "#g1_aura-2-celeste-es", |
68 | | - "#g1_aura-2-estrella-es", |
69 | | - "#g1_aura-2-nestor-es" |
| 26 | + "deepgram/aura-2" |
70 | 27 | ] |
71 | 28 | }, |
| 29 | + "voice": { |
| 30 | + "type": "string", |
| 31 | + "enum": [ |
| 32 | + "amalthea", |
| 33 | + "andromeda", |
| 34 | + "apollo", |
| 35 | + "arcas", |
| 36 | + "aries", |
| 37 | + "asteria", |
| 38 | + "athena", |
| 39 | + "atlas", |
| 40 | + "aurora", |
| 41 | + "callista", |
| 42 | + "cora", |
| 43 | + "cordelia", |
| 44 | + "delia", |
| 45 | + "draco", |
| 46 | + "electra", |
| 47 | + "harmonia", |
| 48 | + "helena", |
| 49 | + "hera", |
| 50 | + "hermes", |
| 51 | + "hyperion", |
| 52 | + "iris", |
| 53 | + "janus", |
| 54 | + "juno", |
| 55 | + "jupiter", |
| 56 | + "luna", |
| 57 | + "mars", |
| 58 | + "minerva", |
| 59 | + "neptune", |
| 60 | + "odysseus", |
| 61 | + "ophelia", |
| 62 | + "orion", |
| 63 | + "orpheus", |
| 64 | + "pandora", |
| 65 | + "phoebe", |
| 66 | + "pluto", |
| 67 | + "saturn", |
| 68 | + "selene", |
| 69 | + "thalia", |
| 70 | + "theia", |
| 71 | + "vesta", |
| 72 | + "zeus", |
| 73 | + "celeste", |
| 74 | + "estrella", |
| 75 | + "nestor" |
| 76 | + ], |
| 77 | + "default": "thalia", |
| 78 | + "description": "The voice to use for speech synthesis." |
| 79 | + }, |
72 | 80 | "text": { |
73 | 81 | "type": "string", |
74 | 82 | "description": "The text content to be converted to speech." |
|
104 | 112 | "model", |
105 | 113 | "text" |
106 | 114 | ], |
107 | | - "title": "aura-2-amalthea-en" |
| 115 | + "title": "deepgram/aura-2" |
108 | 116 | } |
109 | 117 | } |
110 | 118 | } |
|
167 | 175 | "x-codeSamples": [ |
168 | 176 | { |
169 | 177 | "lang": "cURL", |
170 | | - "source": "curl -L \\\n --request POST \\\n --url 'https://api.aimlapi.com/v1/tts' \\\n --header 'Authorization: Bearer <YOUR_AIMLAPI_KEY>' \\\n --header 'Content-Type: application/json' \\\n --data '{\n \"model\": \"#g1_aura-2-amalthea-en\",\n \"text\": \"Cities of the future promise to radically transform how people live, work, and move. Instead of sprawling layouts, we will see vertical structures that integrate residential, work, and public spaces into single, self-sustaining ecosystems. Architecture will adapt to climate conditions, and buildings will be energy-efficient—generating power through solar panels, wind turbines, and even foot traffic.\"\n }'" |
| 178 | + "source": "curl -L \\\n --request POST \\\n --url 'https://api.aimlapi.com/v1/tts' \\\n --header 'Authorization: Bearer <YOUR_AIMLAPI_KEY>' \\\n --header 'Content-Type: application/json' \\\n --data '{\n \"model\": \"deepgram/aura-2\",\n \"voice\": \"thalia\",\n \"text\": \"Cities of the future promise to radically transform how people live, work, and move. Instead of sprawling layouts, we will see vertical structures that integrate residential, work, and public spaces into single, self-sustaining ecosystems. Architecture will adapt to climate conditions, and buildings will be energy-efficient—generating power through solar panels, wind turbines, and even foot traffic.\"\n }'" |
171 | 179 | }, |
172 | 180 | { |
173 | 181 | "lang": "JavaScript", |
174 | | - "source": "async function main() {\n const response = await fetch('https://api.aimlapi.com/v1/tts', {\n method: 'POST',\n headers: {\n 'Authorization': 'Bearer <YOUR_AIMLAPI_KEY>',\n 'Content-Type': 'application/json',\n },\n body: JSON.stringify({\n \"model\": \"#g1_aura-2-amalthea-en\",\n \"text\": \"Cities of the future promise to radically transform how people live, work, and move. Instead of sprawling layouts, we will see vertical structures that integrate residential, work, and public spaces into single, self-sustaining ecosystems. Architecture will adapt to climate conditions, and buildings will be energy-efficient—generating power through solar panels, wind turbines, and even foot traffic.\"\n }),\n });\n\n const data = await response.json();\n console.log(JSON.stringify(data, null, 2));\n}\n\nmain();" |
| 182 | + "source": "async function main() {\n const response = await fetch('https://api.aimlapi.com/v1/tts', {\n method: 'POST',\n headers: {\n 'Authorization': 'Bearer <YOUR_AIMLAPI_KEY>',\n 'Content-Type': 'application/json',\n },\n body: JSON.stringify({\n \"model\": \"deepgram/aura-2\",\n \"voice\": \"thalia\",\n \"text\": \"Cities of the future promise to radically transform how people live, work, and move. Instead of sprawling layouts, we will see vertical structures that integrate residential, work, and public spaces into single, self-sustaining ecosystems. Architecture will adapt to climate conditions, and buildings will be energy-efficient—generating power through solar panels, wind turbines, and even foot traffic.\"\n }),\n });\n\n const data = await response.json();\n console.log(JSON.stringify(data, null, 2));\n}\n\nmain();" |
175 | 183 | }, |
176 | 184 | { |
177 | 185 | "lang": "Python", |
178 | | - "source": "import requests\n\nresponse = requests.post(\n \"https://api.aimlapi.com/v1/tts\",\n headers={\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"Bearer <YOUR_AIMLAPI_KEY>\",\n },\n json={\n \"model\": \"#g1_aura-2-amalthea-en\",\n \"text\": \"Cities of the future promise to radically transform how people live, work, and move. Instead of sprawling layouts, we will see vertical structures that integrate residential, work, and public spaces into single, self-sustaining ecosystems. Architecture will adapt to climate conditions, and buildings will be energy-efficient—generating power through solar panels, wind turbines, and even foot traffic.\"\n }\n)\n\ndata = response.json()\nprint(data)" |
| 186 | + "source": "import requests\n\nresponse = requests.post(\n \"https://api.aimlapi.com/v1/tts\",\n headers={\n \"Content-Type\": \"application/json\",\n \"Authorization\": \"Bearer <YOUR_AIMLAPI_KEY>\",\n },\n json={\n \"model\": \"deepgram/aura-2\",\n \"voice\": \"thalia\",\n \"text\": \"Cities of the future promise to radically transform how people live, work, and move. Instead of sprawling layouts, we will see vertical structures that integrate residential, work, and public spaces into single, self-sustaining ecosystems. Architecture will adapt to climate conditions, and buildings will be energy-efficient—generating power through solar panels, wind turbines, and even foot traffic.\"\n }\n)\n\ndata = response.json()\nprint(data)" |
179 | 187 | } |
180 | 188 | ] |
181 | 189 | } |
|
0 commit comments