Skip to content

Commit

Permalink
add optional type
Browse files Browse the repository at this point in the history
  • Loading branch information
alistairewj committed Apr 18, 2024
1 parent e9e9636 commit ccb005d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/b2aiprep/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import warnings
from hashlib import md5
from pathlib import Path
from typing import Union
from typing import Optional, Union

import matplotlib.pyplot as plt
import opensmile
Expand Down Expand Up @@ -484,7 +484,7 @@ def __init__(
device=device,
)

def transcribe(self, audio: Audio, language: str = None):
def transcribe(self, audio: Audio, language: Optional[str] = None):
"""
Transcribes the given audio input into text.
Expand Down

0 comments on commit ccb005d

Please sign in to comment.