Skip to content

Commit

Permalink
Update plugin_audio_api.py (#1204)
Browse files Browse the repository at this point in the history
Update plugin_audio_api.py 

Signed-off-by: Sihan Chen <39623753+Spycsh@users.noreply.github.com>
  • Loading branch information
Spycsh committed Jan 29, 2024
1 parent 19fec91 commit 9a73535
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,9 @@ async def talkingbot(request: Request):
data = await request.json()
text = data["text"]
voice = data["voice"]
knowledge_id = data["knowledge_id"]
audio_output_path = data["audio_output_path"] if "audio_output_path" in data else "output_audio.wav"

logger.info(f'Received prompt: {text}, and use voice: {voice} knowledge_id: {knowledge_id}')
logger.info(f'Received prompt: {text}, and use voice: {voice}')

return await router.handle_voice_tts_request(text, voice, audio_output_path)

Expand Down

0 comments on commit 9a73535

Please sign in to comment.