File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 11[tool .poetry ]
22name = " solana-agent"
3- version = " 31.2.0 "
3+ version = " 31.2.1 "
44description = " AI Agents for Solana"
55authors = [" Bevan Hunt <bevan@bevanhunt.com>" ]
66license = " MIT"
Original file line number Diff line number Diff 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" ):
You can’t perform that action at this time.
0 commit comments