Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2dd6cb8

Browse files
committedMar 21, 2025
refactor(package): rename audio extra to voice_helpers
1 parent d55062a commit 2dd6cb8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
 

‎pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ openai = "openai.cli:main"
4545
[project.optional-dependencies]
4646
realtime = ["websockets >= 13, < 15"]
4747
datalib = ["numpy >= 1", "pandas >= 1.2.3", "pandas-stubs >= 1.1.0.11"]
48-
audio = ["sounddevice>=0.5.1", "numpy>=2.0.2"]
48+
voice_helpers = ["sounddevice>=0.5.1", "numpy>=2.0.2"]
4949

5050
[tool.rye]
5151
managed = true

‎src/openai/_extras/numpy_proxy.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import numpy as numpy
1111

1212

13-
NUMPY_INSTRUCTIONS = format_instructions(library="numpy", extra="audio")
13+
NUMPY_INSTRUCTIONS = format_instructions(library="numpy", extra="voice_helpers")
1414

1515

1616
class NumpyProxy(LazyProxy[Any]):

‎src/openai/_extras/sounddevice_proxy.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import sounddevice as sounddevice # type: ignore
1111

1212

13-
SOUNDDEVICE_INSTRUCTIONS = format_instructions(library="sounddevice", extra="audio")
13+
SOUNDDEVICE_INSTRUCTIONS = format_instructions(library="sounddevice", extra="voice_helpers")
1414

1515

1616
class SounddeviceProxy(LazyProxy[Any]):

0 commit comments

Comments
 (0)
Please sign in to comment.