Skip to content

Instantly share code, notes, and snippets.

@weiland
Created January 13, 2023 09:34
Show Gist options
  • Save weiland/2d16e76b75d3b7437faca90af0653883 to your computer and use it in GitHub Desktop.
Save weiland/2d16e76b75d3b7437faca90af0653883 to your computer and use it in GitHub Desktop.
TikTok's TTS 🗣️

Request TikTok's TTS voices

Requirements

  • httpie
  • jq
  • TikTok Account

Run

http POST https://api22-normal-c-useast1a.tiktokv.com/media/api/text/speech/invoke/\?text_speaker=en_us_001&req_text=Hello+pascal+how+are+you&speaker_map_type=0&aid=1233 \
  User-Agent:'com.zhiliaoapp.musically/2022600030 (Linux; U; Android 7.1.2; es_ES; SM-G988N; Build/NRD90M;tt-ok/3.12.13.1)' \
  Cookie:'sessionid=SESSION_ID' | \
  jq --raw-output '.data.v_str' | \
  base64 --decode > voice.mp3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment