projekt-rising-ai commited on
Commit
40bd9d8
·
1 Parent(s): b738385

Added idle URL for talking head

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -418,8 +418,7 @@ class ChatWrapper:
418
  else:
419
  temp_file = LOOPING_TALKING_HEAD
420
  html_video = create_html_video(temp_file, TALKING_HEAD_WIDTH)
421
- #html_audio, temp_aud_file = do_html_audio_speak(output, translate_to)
422
- html_audio, temp_aud_file = do_html_audio_speak(output, translate_to)
423
  else:
424
  html_audio, temp_aud_file = do_html_audio_speak(output, translate_to)
425
  else:
@@ -508,6 +507,7 @@ def do_html_video_speak(words_to_speak, azure_language):
508
  'azure_voice': azure_voice,
509
  'azure_style': 'friendly',
510
  'animation_pipeline': 'high_speed',
 
511
  }
512
  api_endpoint = "https://api.exh.ai/animations/v1/generate_lipsync"
513
  res = requests.post(api_endpoint, json=body, headers=headers)
 
418
  else:
419
  temp_file = LOOPING_TALKING_HEAD
420
  html_video = create_html_video(temp_file, TALKING_HEAD_WIDTH)
421
+ html_audio, temp_aud_file = do_html_audio_speak(output, translate_to)
 
422
  else:
423
  html_audio, temp_aud_file = do_html_audio_speak(output, translate_to)
424
  else:
 
507
  'azure_voice': azure_voice,
508
  'azure_style': 'friendly',
509
  'animation_pipeline': 'high_speed',
510
+ 'idle_url': 'https://ugc-idle.s3-us-west-2.amazonaws.com/16c370fd2aac0ccab29d56762125d181.mp4'
511
  }
512
  api_endpoint = "https://api.exh.ai/animations/v1/generate_lipsync"
513
  res = requests.post(api_endpoint, json=body, headers=headers)