tinyhumansai/openhuman · error
invalid format `{other}`
Error message
invalid format `{other}` What it means
The podcast tool's optional audio-format parameter only accepts "mp3" or "wav"; this fires when a format string was supplied but matches neither (case-sensitive after trim). Generation has not started.
Source
Thrown at src/openhuman/voice/audio_toolkit/tools/podcast.rs:230
.filter(|s| !s.is_empty())
.map(str::to_string)
}
fn optional_format(
args: &serde_json::Value,
key: &str,
) -> anyhow::Result<Option<crate::openhuman::voice::audio_toolkit::AudioFormat>> {
let Some(raw) = args.get(key).and_then(|v| v.as_str()) else {
return Ok(None);
};
match raw.trim() {
"mp3" => Ok(Some(
crate::openhuman::voice::audio_toolkit::AudioFormat::Mp3,
)),
"wav" => Ok(Some(
crate::openhuman::voice::audio_toolkit::AudioFormat::Wav,
)),
other => Err(anyhow::anyhow!("invalid format `{other}`")),
}
}
View on GitHub (pinned to 7491200858)
Solutions
- Use "mp3" or "wav" (lowercase) for the format parameter
- Omit the format parameter to use the default
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/openhuman/voice/audio_toolkit/tools/podcast.rs:230 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of tinyhumansai/openhuman@7491200858 (2026-08-17).
Data as JSON: /api/errors/cb811e9034deda13.
Report an issue: GitHub.