Closed chainyo closed 1 year ago
This PR introduces many things to allow LocalExecution or RemoteExecution for transcription and diarization.
LocalExecution
RemoteExecution
The RemoteExecution isn't functional yet and will raise a NotImplementedError.
NotImplementedError
ASR_TYPE
only_transcription
only_diarization
TRANSCRIBE_SERVER_URLS
DIARIZE_SERVER_URLS
Settings
asr_type
async
DiarizeResponse
TranscribeResponse
torch.Tensor
ProcessException
ASRService
vad_service
This PR introduces many things to allow
LocalExecution
orRemoteExecution
for transcription and diarization.The
RemoteExecution
isn't functional yet and will raise aNotImplementedError
.ASR_TYPE
for custom deployonly_transcription
andonly_diarization
. They still need to be fully implemented, but they are present.TRANSCRIBE_SERVER_URLS
as a new env variable to list the URLs available for RemoteExecution for the transcription task.DIARIZE_SERVER_URLS
as a new env variable to list the URLs available for RemoteExecution for the diarization task.Settings
schema.asr_type
and theasync
asr_type process.DiarizeResponse
andTranscribeResponse
for only transcription and diarization endpoints.torch.Tensor
pydantic annotation.ProcessException
schema that handles the source and the message of Python exceptions.only_transcription
andonly_diarization
endpoints.ASRService
class.RemoteExecution
.vad_service
parameter for the transcribe_service.