This file contains hidden or 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 argparse | |
import wave | |
from pathlib import Path | |
from piper.voice import PiperVoice | |
def synthesize_speech( | |
model_path: Path, model_json_path: Path, text: str, output_path: Path | |
): | |
# Load the voice model |
This file contains hidden or 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 typer | |
from typing import Annotated | |
import json | |
from pathlib import Path, PureWindowsPath | |
from dataclasses import dataclass | |
import shutil | |
from rich.progress import track | |
app = typer.Typer() |