We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to add multipe audio links (refer) in a single prompt tag?
The text was updated successfully, but these errors were encountered:
For a Message turn, simply call addAudioItem() multiple times on the builder:
Message
addAudioItem()
String contextPath = context.getContextPath(); Message message = OutputTurns.message("welcome-message") .addAudioItem(AudioFile.fromLocation(contextPath + "/audio/1.wav")) .addAudioItem(AudioFile.fromLocation(contextPath + "/audio/2.wav")) .build();
For an interaction, you can pass multiple AudioFileobjects to the addPrompt method:
AudioFile
addPrompt
String contextPath = context.getContextPath(); Interaction interaction = OutputTurns.interaction("interaction") .addPrompt(AudioFile.fromLocation(contextPath + "/audio/3.wav"), AudioFile.fromLocation(contextPath + "/audio/4.wav")) .build();
You can also create multiple prompts:
String contextPath = context.getContextPath(); Interaction interaction = OutputTurns.interaction("interaction") .addPrompt(AudioFile.fromLocation(contextPath + "/audio/3.wav")) .addPrompt(AudioFile.fromLocation(contextPath + "/audio/4.wav")) .build();
Sorry, something went wrong.
thanks
No branches or pull requests
How to add multipe audio links (refer) in a single prompt tag?
The text was updated successfully, but these errors were encountered: