Skip to content

Conversation

@julien-nc
Copy link
Member

@julien-nc julien-nc commented Dec 4, 2025

Detect audio input format when sending it as a message to the chat completion endpoint.
OpenAI support wav and mp3, so do we.

This makes integration_openai work whether the assistant is recording/producing wav or mp3 audio messages. (We switched from mp3 to wav in nextcloud/assistant#413 )

Tested with the assistant before and after nextcloud/assistant#413 . With wav I get audio/x-wav as mimetype and with mp3 we get audio/mpeg. I decided to add support for audio/mp3 and audio/wav just in case.

…age to the chat completion endpoint, support wav and mp3

Signed-off-by: Julien Veyssier <[email protected]>
@julien-nc julien-nc added enhancement New feature or request 3. to review labels Dec 4, 2025
@julien-nc
Copy link
Member Author

/backport to stable32

Copy link
Member

@marcelklehr marcelklehr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thank you :)

@julien-nc julien-nc merged commit d5e606e into main Dec 4, 2025
28 of 30 checks passed
@julien-nc julien-nc deleted the enh/noid/detect-audio-chat-msg-format branch December 4, 2025 15:50
@kyteinsky kyteinsky mentioned this pull request Dec 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants