vocodedev/vocode-core

Implement Async Synthesize in TurnBased AzureSynthesizer

arpagon opened this issue · 0 comments

Implement Async Synthesize in TurnBased AzureSynthesizer

Summary

The objective is to implement an asynchronous version of the synthesize method in the AzureSynthesizer class to improve performance by allowing multiple synthesis operations to run in parallel.

Blockers

  • None

Outcome

By introducing asynchronous synthesis, we aim to reduce the time taken for bulk synthesis operations, leading to a more efficient development process and a smoother experience for contributors and end-users. This aligns with the goals of enhancing community engagement and product development.

Technical Details

# Example of an asynchronous method in Python using asyncio
async def async_synthesize(self, text: str) -> AudioSegment:
# Implementation goes here

Subtasks

  • Research Azure Speech SDK's support for asynchronous operations
  • Design the async_synthesize method interface
  • Implement the async_synthesize method in the AzureSynthesizer class
  • Test the async_synthesize method with various input scenarios
  • Update documentation to reflect the new asynchronous capabilities
  • Create a pull request for the new feature