voice-changer/server/voice_changer/utils/VoiceChangerIF.py

34 lines
726 B
Python
Raw Normal View History

2023-07-15 17:39:02 +03:00
from typing import Any, Protocol
from voice_changer.utils.VoiceChangerModel import AudioInOut, VoiceChangerModel
class VoiceChangerIF(Protocol):
def get_processing_sampling_rate() -> int:
...
def get_info(self) -> dict[str, Any]:
...
2023-07-17 01:21:06 +03:00
2023-07-15 17:39:02 +03:00
def get_performance(self) -> list[int]:
...
def setModel(model: VoiceChangerModel) -> None:
...
def update_settings(self, key: str, val: int | float | str) -> bool:
...
def on_request(receivedData: AudioInOut) -> tuple[AudioInOut, list[int | float]]:
...
def export2onnx() -> Any:
...
2023-07-17 16:21:58 +03:00
def setInputSampleRate(self, sr: int):
...
def setOutputSampleRate(self, sr: int):
...