thejagstudio commited on
Commit
70e64a4
·
verified ·
1 Parent(s): a5bb795

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +15 -15
main.py CHANGED
@@ -237,21 +237,21 @@ def VoiceGen():
237
  url = "https://texttospeech.googleapis.com/v1beta1/text:synthesize?alt=json&key=AIzaSyBeo4NGA__U6Xxy-aBE6yFm19pgq8TY-TM"
238
 
239
  payload = json.dumps({
240
- "input": {
241
- "text": text
242
- },
243
- {
244
- "languageCode": "en-US",
245
- "name": "en-US-Studio-Q"
246
- },
247
- {
248
- "audioEncoding": "LINEAR16",
249
- "pitch": 0,
250
- "speakingRate": 1,
251
- "effectsProfileId": [
252
- "telephony-class-application"
253
- ]
254
- }
255
  })
256
  headers = {
257
  'sec-ch-ua': '"Google Chrome";v="123" "Not:A-Brand";v="8" "Chromium";v="123"',
 
237
  url = "https://texttospeech.googleapis.com/v1beta1/text:synthesize?alt=json&key=AIzaSyBeo4NGA__U6Xxy-aBE6yFm19pgq8TY-TM"
238
 
239
  payload = json.dumps({
240
+ "input":{
241
+ "text":text
242
+ },
243
+ "voice":{
244
+ "languageCode":"en-US",
245
+ "name":"en-US-Studio-Q"
246
+ },
247
+ "audioConfig":{
248
+ "audioEncoding":"LINEAR16",
249
+ "pitch":0,
250
+ "speakingRate":1,
251
+ "effectsProfileId":[
252
+ "telephony-class-application"
253
+ ]
254
+ }
255
  })
256
  headers = {
257
  'sec-ch-ua': '"Google Chrome";v="123" "Not:A-Brand";v="8" "Chromium";v="123"',