Giter VIP home page Giter VIP logo

Comments (17)

PeeFiftee avatar PeeFiftee commented on August 18, 2024 1

You think you can try to add the Cepstral and VocieForge voices?

from tts.

chrisjp avatar chrisjp commented on August 18, 2024

All English language TikTok voices are now found. Other languages currently in progress.

Today I was able to figure out the request for fetching voices list JSON for each language in TikTok (with thanks to several people in the linked issue in the OP).

Bad news it requires an access_key which as far as I can tell is generated inside the app somewhere, so use of HTTP Toolkit and a modified TikTok .apk is required to obtain this.

Here's some quick and dirty documentation for it based on my testing...

API endpoint

GET https://api31-normal-useast2a.tiktokv.com/effect/api/v3/effects

Required parameters

  • access_key - 32 char alphanumeric string, looks like it might be an md5 hash. Seems to be generated in the app. No cookies generated by the website contain this value. You'll need HTTP Toolkit to find this.
  • app_version - self-explanatory. 30.1.2 is the value I'm using, matches the modified .apk
  • sdk_version - unsure which SDK this refers to, possibly something internal. 14.3.0 is a working value.
  • device_id - a 19-digit numeric [0-9] ID. You can fake this. 1234567890123456789 will work.
  • device_platform - Must be android. I didn't find any other working values.
  • device_type - model ID of your device. My emulator uses SM-G988N. You can probably put anything you want here.
  • channel - Presumably the store the app was acquired from. googleplay works here.
  • panel - Panel is what TikTok calls each of its effect categories or something. You need to put speaking-voice for this.

Optional parameters

region - 2-letter uppercase country code. Defaults to US if not set.
carrier_region - 2-letter uppercase country code. Defaults to US if not set. On your device this will be the country it's physically located in based on SIM card network you're connected to.

Full URL example

https://api31-normal-useast2a.tiktokv.com/effect/api/v3/effects?access_key=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&app_version=30.1.2&sdk_version=14.3.0&device_id=1234567890123456789&device_platform=android&device_type=SM-G988N&channel=googleplay&region=US&carrier_region=US&panel=speaking-voice
you'd need a valid access_key in that for this to work, but no special headers need to be set. You could open it in your browser if you wanted to.

from tts.

chrisjp avatar chrisjp commented on August 18, 2024

Existing languages voices have now been updated for TikTok.

France, Germany, Spain, and South Korea regions are only returning the default English voices using the above method. I don't know what happened to the original voice IDs they have but they do still work. I am assuming they are no longer available in the app, considering even some of the original English aren't any more.

from tts.

thetoonsofjosh avatar thetoonsofjosh commented on August 18, 2024

Acapela

has two interesting voices for the Northern Sámi language, the only ones for this language I know of. Neither of them work in their demo.

{"vid": "biera_hmm_22k", "name": "Biera", "flag": "", "lang": "Northern Sámi", "accent": "", "gender": "F"},
{"vid": "elle_hmm_22k", "name": "Elle", "flag": "", "lang": "Northern Sámi", "accent": "", "gender": "F"},

I know this is 4 days ago but about those Northern Sámi Acapela voices, They seem to work now (I tested out the voices in their demo), Not to mention they also removed the background noise.

from tts.

chrisjp avatar chrisjp commented on August 18, 2024

Thanks for the heads up. They must have fixed them in the last week or so, also nice that they've removed the background noise from all voices.
I've pushed these changes to the website.

from tts.

chrisjp avatar chrisjp commented on August 18, 2024

VoiceForge is a simple enough addition and I'll hopefully get this added later tonight. Cepstral looks a little more complex but will likely be added quite soon.

from tts.

chrisjp avatar chrisjp commented on August 18, 2024

@PeeFiftee both VoiceForge and Cepstral have been added.

Unfortunately, Cepstral is already rate-limiting requests from my server now due to the amount of users it gets so it's not working well. VoiceForge appears to be fine though.

from tts.

PeeFiftee avatar PeeFiftee commented on August 18, 2024

I was gonna say. The Cepstral voices should have a VoiceForge version. Try those instead.

from tts.

PeeFiftee avatar PeeFiftee commented on August 18, 2024

Only the English ones though (and it seems like the new apis only got to the desktop versions, still waiting for the changes to make it to the mobile version)

from tts.

PeeFiftee avatar PeeFiftee commented on August 18, 2024

While you're at it. I'm sorry if it sounds like I'm annoying you, I'm trying not to. But can you try adding the Readloud(Ivona) and Microsoft SAPI4 (Sam, Robosoft, etc...) apis too?

from tts.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.