The voices one model offers
GET
/api/speak
const url = 'http://localhost:5173/api/speak?serverId=example&model=example';const options = { method: 'GET', headers: {cookie: 'authjs.session-token=<authjs.session-token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'http://localhost:5173/api/speak?serverId=example&model=example' \ --cookie authjs.session-token=<authjs.session-token>An empty list is a real answer: it means this connection publishes no names, and the setting asks for one to be typed instead.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”serverId
required
string
model
required
string
Responses
Section titled “Responses”The voice names, possibly none.
Media typeapplication/json
object
voices
Array<string>
Examplegenerated
{ "voices": [ "example" ]}
