kramcat / CharacterAI

Unofficial Python API for character.ai
https://docs.kram.cat
MIT License
460 stars 68 forks source link

Retrieving Character Voice #67

Open PrizeGotti opened 12 months ago

PrizeGotti commented 12 months ago

Is there anyway we can retrieve a characters voice response also? Ideally I'd like to skip running a local tts script, especially as C.Ai already provides us with this feature.

Could we find a way to also return this audio along with the text data?

GearStarter commented 6 months ago

Still in development. In ToDo list.

Aws-killer commented 1 month ago

It is basically curl --location 'https://neo.character.ai/multimodal/api/v1/memo/replay' \ --header 'accept: application/json, text/plain, /' \ --header 'accept-language: en-US,en;q=0.9' \ --header 'authorization: Token xxxxxx' \ --header 'content-type: application/json' \ --header 'origin: https://character.ai' \ --header 'priority: u=1, i' \ --header 'referer: https://character.ai/' \ --header 'sec-ch-ua: "Google Chrome";v="129", "Not=A?Brand";v="8", "Chromium";v="129"' \ --header 'sec-ch-ua-mobile: ?0' \ --header 'sec-ch-ua-platform: "Windows"' \ --header 'sec-fetch-dest: empty' \ --header 'sec-fetch-mode: cors' \ --header 'sec-fetch-site: same-site' \ --header 'user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36' \ --header 'Cookie: xxxxxxx' \ --data '{"roomId":"d0d33cda-e980-41cf-aba5-d807d9d056a0","turnId":"31bf69c6-2fcd-4184-8808-9371fac5c83e","candidateId":"06447423-5242-4dcf-b547-1117402e3ad9","voiceId":"055dc55b-f940-4c03-b263-4a4b2a0b3efd"}'