List this application user’s private voices
const url = 'https://api.tansr.com/t1/voices';const options = {method: 'GET', headers: {'x-tansr-app-token': '<x-tansr-app-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 https://api.tansr.com/t1/voices \ --header 'x-tansr-app-token: <x-tansr-app-token>'Without taskId returns the latest 50 private voices. With taskId returns at most one resource linked to that original creation task, including after its task result expires. Unknown tasks, other resource kinds and other owner/application/end-user scopes return an empty list. Resource identity, expiry and revocation remain unchanged. No provider call, task replay or charge is made.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Exact original voice.create task identifier. Other query parameters and repeated taskId values are rejected.
Responses
Section titled “Responses”No upstream calls or provider account listing
Headers
Section titled “Headers”Present only for a successful taskId query, including an empty result; exactly echoes its canonical taskId. Clients must verify it before treating the list as task-linked. Absent on the unfiltered list and errors.
Invalid taskId or unsupported query parameter
本文是否有帮助?
感谢反馈,我们会持续改进这篇文章。