Skip to content

Merging the chatgpt and whisper apis to be able to talk to gpt-powered NPCs. #48

Answered by srcnalt
achraf-oujjir asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @achraf-oujjir,

  • Yes, you can make the audio sent longer, in the sample it was 5 seconds however OpenAI does not show a max amount in the API Docs. You can turn the sample code into a push-to-talk system which should work for you.

  • You can add a part to your prompt such as "Reply in maximum 100 words" then this should help you shorten the result.

Replies: 2 comments 16 replies

Comment options

You must be logged in to vote
15 replies
@GamedevBranislav
Comment options

@achraf-oujjir
Comment options

@GamedevBranislav
Comment options

@achraf-oujjir
Comment options

@achraf-oujjir
Comment options

Answer selected by achraf-oujjir
Comment options

You must be logged in to vote
1 reply
@achraf-oujjir
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants