From d8886fd3b90cfbd409cc413886aef46f4eff31e4 Mon Sep 17 00:00:00 2001 From: syui Date: Thu, 1 Jan 2026 16:15:18 +0000 Subject: [PATCH] =?UTF-8?q?v=20=E3=82=92=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- v.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/v.md b/v.md index 8c3b4ae..8607350 100644 --- a/v.md +++ b/v.md @@ -27,6 +27,25 @@ ai.v project - https://elevenlabs.io +- https://console.cloud.google.com/apis/api/texttospeech.googleapis.com + +```sh +curl -s -X POST "https://texttospeech.googleapis.com/v1/text:synthesize" \ + -H "Authorization: Bearer ${ACCESS_TOKEN}" \ + -H "Content-Type: application/json" \ + -d "{ + \"input\": {\"text\": \"${TEXT}\"}, + \"voice\": {\"languageCode\": \"${LANG_CODE}\", \"name\": \"${VOICE}\"}, + \"audioConfig\": { + \"audioEncoding\": \"MP3\", + \"pitch\": ${PITCH}, + \"speakingRate\": ${SPEED} + } + }" | jq -r '.audioContent' | base64 -D > "$TMP_MP3" + +afplay "$TMP_MP3" +``` + ## vmc ## ue \ No newline at end of file