Skip to content

Commit

Permalink
fix unsupported operand
Browse files Browse the repository at this point in the history
  • Loading branch information
hugobloem committed Nov 10, 2023
1 parent ae21095 commit c83146d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wyoming-microsoft-tts/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import json
import logging
from pathlib import Path
from typing import Any
from typing import Any, Union
from urllib.parse import quote, urlsplit, urlunsplit
from urllib.request import Request, urlopen

Expand Down Expand Up @@ -57,7 +57,7 @@ def transform_voices_files(response):


def get_voices(
download_dir: str | Path,
download_dir: Union[str, Path],
update_voices: bool = False,
region: str = "westus",
key: str = "",
Expand Down Expand Up @@ -94,7 +94,7 @@ def get_voices(
return json.load(voices_file)


def find_voice(name: str, download_dir: str | Path) -> dict[str, Any]:
def find_voice(name: str, download_dir: Union[str, Path]) -> dict[str, Any]:
"""Look for the files for a voice.
Returns: Dict of voice info
Expand Down

0 comments on commit c83146d

Please sign in to comment.