11 lines
346 B
Python
11 lines
346 B
Python
try:
|
|
import numpy as np
|
|
import numpy.typing as npt
|
|
import websockets
|
|
except ImportError as _e:
|
|
raise ImportError(
|
|
"`numpy` + `websockets` are required to use voice. You can install them via the optional "
|
|
"dependency group: `pip install openai-agents[voice]`."
|
|
) from _e
|
|
|
|
__all__ = ["np", "npt", "websockets"]
|