Skip to content

Misc. bug: WEBUI does not uploads audio ogg files #24164

@distante

Description

@distante

Name and Version

llama-cli --version
version: 9491 (9e58d4d)
built with GNU 13.3.0 for Linux x86_64

Operating systems

Linux

Which llama.cpp modules do you know to be affected?

llama-server

Command line

Problem description & steps to reproduce

When running a model with audio capabilites (in my case gemma4b) ogg audio files are rejected for attachement. On the browser developer tools this message is visible:

File my-file.ogg appears to be binary and will be skipped

on the file array, there is no ogg support, and the types are hardcoded

   case $n.MP3_MPEG:
    case $n.MP3:
    case $n.MP4:
    case $n.WAV:
    case $n.WAVE:
    case $n.X_WAV:
    case $n.X_WAVE:
    case $n.VND_WAVE:
    case $n.X_PN_WAV:
    case $n.WEBM:
    case $n.WEBM_OPUS:
        return un.AUDIO;

since ogg is open source, a lot of apps use them instead of other kinds of containers that need licenses. I think it should be supported.

First Bad Commit

No response

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions