Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow local or remote ASR process #258

Merged
merged 8 commits into from
Sep 29, 2023
Merged

Allow local or remote ASR process #258

merged 8 commits into from
Sep 29, 2023

Conversation

chainyo
Copy link
Contributor

@chainyo chainyo commented Sep 28, 2023

This PR introduces many things to allow LocalExecution or RemoteExecution for transcription and diarization.

The RemoteExecution isn't functional yet and will raise a NotImplementedError.

  • Added 2 new ASR_TYPE for custom deploy only_transcription and only_diarization. They still need to be fully implemented, but they are present.
  • Added TRANSCRIBE_SERVER_URLS as a new env variable to list the URLs available for RemoteExecution for the transcription task.
  • Added DIARIZE_SERVER_URLS as a new env variable to list the URLs available for RemoteExecution for the diarization task.
  • Multiple updates to the Settings schema.
  • Updated the lifespan with the two new asr_type and the async asr_type process.
  • Added DiarizeResponse and TranscribeResponse for only transcription and diarization endpoints.
  • Added a custom torch.Tensor pydantic annotation.
  • Updated the endpoints with the new ProcessException schema that handles the source and the message of Python exceptions.
  • Added the two next only_transcription and only_diarization endpoints.
  • Added a lot of schemas for the ASRService to handle process tasks, execution types, etc.
  • Removed unused parameters for the base ASRService class.
  • Added a new URLService to handle concurrency for the new RemoteExecution.
  • Removed unused vad_service parameter for the transcribe_service.
  • Updated tests.

@chainyo chainyo linked an issue Sep 28, 2023 that may be closed by this pull request
@chainyo chainyo added api Everything related to the API implementation deploy Everything related to Docker and deployment labels Sep 28, 2023
@chainyo chainyo merged commit 74fd976 into main Sep 29, 2023
@chainyo chainyo deleted the 257-split-services branch September 29, 2023 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Everything related to the API implementation deploy Everything related to Docker and deployment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Prepare RemoteExecution ASR process
2 participants