Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
1177dd53
Unverified
Commit
1177dd53
authored
Sep 15, 2025
by
co63oc
Committed by
GitHub
Sep 14, 2025
Browse files
fix type of sampling rate for encode_base64 (#24826)
Signed-off-by:
co63oc
<
co63oc@users.noreply.github.com
>
parent
fc2dbcda
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
vllm/multimodal/audio.py
vllm/multimodal/audio.py
+1
-1
vllm/multimodal/utils.py
vllm/multimodal/utils.py
+1
-1
No files found.
vllm/multimodal/audio.py
View file @
1177dd53
...
...
@@ -106,7 +106,7 @@ class AudioMediaIO(MediaIO[tuple[npt.NDArray, float]]):
def
load_file
(
self
,
filepath
:
Path
)
->
tuple
[
npt
.
NDArray
,
float
]:
return
librosa
.
load
(
filepath
,
sr
=
None
)
def
encode_base64
(
self
,
media
:
tuple
[
npt
.
NDArray
,
floa
t
])
->
str
:
def
encode_base64
(
self
,
media
:
tuple
[
npt
.
NDArray
,
in
t
])
->
str
:
audio
,
sr
=
media
with
BytesIO
()
as
buffer
:
...
...
vllm/multimodal/utils.py
View file @
1177dd53
...
...
@@ -310,7 +310,7 @@ class MediaConnector:
def
encode_audio_base64
(
audio
:
np
.
ndarray
,
sampling_rate
:
floa
t
,
sampling_rate
:
in
t
,
)
->
str
:
"""Encode audio as base64."""
audio_io
=
AudioMediaIO
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment