Private
Public Access
1
0

v を更新

2026-01-01 16:15:18 +00:00
parent 4364e43490
commit d8886fd3b9

19
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