Discussions

Ask a Question

So cloned voices via the free plan are not accessible via API?

I inputed my credentials here to list cloned voices but the ID provided was just to a stock voice: <https://docs.play.ht/reference/api-list-cloned-voices> I couldn't see any other way to access the ID for my cloned voice, which is a shame and would be useful whilst testing and building. A lot more documentation would be good, eg what audio format is the response via API given in in sample rate etc? For cloning a high fidelity voice on the upgraded plan should we upload .wav or is mp3 essentially equivalent? Where one cloned high fidelity voice is allowed, can this be re-analyzed until it's right or we just get one shot? The documentation is rather limited from what I could see. I've had to do a lot of guessing and trial and error in coding to work it out.

code: 'ERR_UNKNOWN_BUILTIN_MODULE (node.js)

Error [ERR_UNKNOWN_BUILTIN_MODULE]\: No such built-in module: node:stream; at new NodeError (node:internal/errors:405:5) at ESMLoader.builtinStrategy (node:internal/modules/esm/translators:259:11) at ESMLoader.moduleProvider (node:internal/modules/esm/loader:468:14) { code: 'ERR_UNKNOWN_BUILTIN_MODULE' } <br> I am getting this error when try to run "npm run dev" command i am suspecting it coming from importing of PassThrough represented below <br> 'use strict'; import fp from "fastify-plugin"; import { PassThrough } from "node:stream;"

Voice must be a valid voice manifest uri

Hello, I am using the audio download method according to this instruction <https://docs.play.ht/reference/python-sdk-audio-streaming>, but unfortunately not all voices like Lance, Oliver have a link ("voice must be a valid voice manifest uri"). Using the tool <https://play.ht/studio/files/64023049-b527-4072-b50f-bd5a1913de06> both of these voices work in the latest turbo mode, but in the documentation the lists of these voices do not have a uri assigned. Is it possible to download, generate such a uri somewhere for these voices? <br>

Creating TTS jobs documentation is misleading

According to the docs (<https://docs.play.ht/reference/api-generate-audio>) This should work (NOTE the `null` values): ```Text bash curl --request POST --url https://api.play.ht/api/v2/tts --header "Authorization: Bearer $PLAYHT_SECRET_KEY" --header "X-USER-ID: $PLAYHT_USER_ID" --header 'content-type: application/json' --header 'Accept: application/json' -d ' { "text": "What is life?", "voice": "s3://mockingbird-prod/abigail_vo_6661b91f-4012-44e3-ad12-589fbdee9948/voices/speaker/manifest.json", "quality": "low", "output_format": "mp3", "voice_engine": "PlayHT2.0", "emotion": "female_happy", "speed": 1, "temperature": null, "sample_rate": 24000, "seed": null, "voice_guidance": null, "style_guidance": null }' {"error_message":"An unexpected error occurred, please wait a few moments and try again. If the problem persists, please contact support.","error_id":"UNEXPECTED_ERROR"}% ``` Alas, no. The problem is, the remote API endpoint can't deserialize `null` vals, even though the docs explicitly mention them 😮‍💨 This works like a charm, though (NOTE: omitted the `null` vals): ```Text bash curl --request POST --url https://api.play.ht/api/v2/tts --header "Authorization: Bearer $PLAYHT_SECRET_KEY" --header "X-USER-ID: $PLAYHT_USER_ID" --header 'content-type: application/json' --header 'Accept: application/json' -d '{ "text": "What is life?", "voice": "s3://mockingbird-prod/abigail_vo_6661b91f-4012-44e3-ad12-589fbdee9948/voices/speaker/manifest.json", "quality": "low", "output_format": "mp3", "voice_engine": "PlayHT2.0", "emotion": "female_happy", "speed": 1, "sample_rate": 24000 }' ``` So, I'd suggest either updating the API docs or fix this in the backend

Only English voices available in the API?

This endpoint only lists English voices: <https://api.play.ht/api/v2/voices> How to use voices from other languages?

render extremley slow and then recieving an error

Hello, I want to know why your website keeps getting error messages when I try to render voices\\ or when I press generate voice it keeps spinning but nothing happen? This is really frustrating, and holding down my work flow!

Module not found error for node.js sdk

I get the following error trying import/require the latest node.js sdk internal/modules/cjs/loader.js:753 throw new ERR_UNKNOWN_BUILTIN_MODULE(filename); ^ Error [ERR_UNKNOWN_BUILTIN_MODULE]\: No such built-in module: node:stream/web at new NodeError (internal/errors.js:322:7) at Function.Module.\_load (internal/modules/cjs/loader.js:753:13) at Module.require (internal/modules/cjs/loader.js:974:19) at require (internal/modules/cjs/helpers.js:101:18) at Object.<anonymous> (/home/vasudevanubrolu/kode/dev/playHT/node_modules/playht/dist/cjs/index.js:37015:21) at Module.\_compile (internal/modules/cjs/loader.js:1085:14) at Object.Module.\_extensions..js (internal/modules/cjs/loader.js:1114:10) at Module.load (internal/modules/cjs/loader.js:950:32) at Function.Module.\_load (internal/modules/cjs/loader.js:790:12) at Module.require (internal/modules/cjs/loader.js:974:19) { code: 'ERR_UNKNOWN_BUILTIN_MODULE' }

Api defualt for quality

hi what is the default setting for "quality" param accepted in the <https://api.play.ht/api/v2/tts/stream> Endpoint? As in, if I didn't include a setting, what quality is the file output as?

Tags/Gender in voice clone api

Hi, when I'm doing an instant voice clone through the API, can I add tags and gender to improve the quality?

When using python library we get a RecursionError

This error shows on initialization of Client. RecursionError: maximum recursion depth exceeded while calling a Python object client = Client("USER_ID", "SECRET_KEY")