python SDK
This commit is contained in:
commit
6dc9fceeb5
18 changed files with 482 additions and 0 deletions
14
vocode/input_device/base_input_device.py
Normal file
14
vocode/input_device/base_input_device.py
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
from ..models.audio_encoding import AudioEncoding
|
||||
import queue
|
||||
from typing import Optional
|
||||
|
||||
class BaseInputDevice():
|
||||
|
||||
def __init__(self, sampling_rate: int, audio_encoding: AudioEncoding, chunk_size: int):
|
||||
self.sampling_rate = sampling_rate
|
||||
self.audio_encoding = audio_encoding
|
||||
self.chunk_size = chunk_size
|
||||
self.queue = queue.Queue()
|
||||
|
||||
def get_audio(self) -> Optional[bytes]:
|
||||
raise NotImplementedError
|
||||
Loading…
Add table
Add a link
Reference in a new issue