This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import asyncio | |
from typing import Union, Optional | |
from pydub import AudioSegment | |
import io | |
from edge_tts import Communicate | |
class NoPausesFound(Exception): | |
def __init__(self, description = None) -> None: | |
self.description = (f'No pauses were found in the text. Please ' |