Skip to content

Commit d3acd80

Browse files
wip (#128)
1 parent 9fb3151 commit d3acd80

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "solana-agent"
3-
version = "31.2.0"
3+
version = "31.2.1"
44
description = "AI Agents for Solana"
55
authors = ["Bevan Hunt <bevan@bevanhunt.com>"]
66
license = "MIT"

solana_agent/adapters/ffmpeg_transcoder.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,13 @@ async def to_pcm16( # pragma: no cover
4949
rate_hz,
5050
len(audio_bytes),
5151
)
52-
# Prefer to hint format for MP4/AAC; ffmpeg can still autodetect if hint is wrong.
52+
# Prefer to hint format for common containers/codecs; ffmpeg can still autodetect if hint is wrong.
5353
hinted_format = None
54-
if input_mime in ("audio/mp4", "audio/aac", "audio/m4a"):
54+
if input_mime in ("audio/mp4", "audio/m4a"):
5555
hinted_format = "mp4"
56+
elif input_mime in ("audio/aac",):
57+
# Raw AAC is typically in ADTS stream format
58+
hinted_format = "adts"
5659
elif input_mime in ("audio/ogg", "audio/webm"):
5760
hinted_format = None # container detection is decent here
5861
elif input_mime in ("audio/wav", "audio/x-wav"):

0 commit comments

Comments
 (0)