Skip to content

Commit

Permalink
fix list 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurZucker committed Oct 24, 2024
1 parent b298161 commit c2820c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/transformers/pipelines/audio_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import datetime
import platform
import subprocess
from typing import Optional, Tuple, Union
from typing import Optional, Tuple, Union, List

import numpy as np

Expand Down Expand Up @@ -51,7 +51,7 @@ def ffmpeg_microphone(
chunk_length_s: float,
format_for_conversion: str = "f32le",
ffmpeg_input_device: Optional[str] = None,
ffmpeg_additional_args: Optional[list[str]] = None,
ffmpeg_additional_args: Optional[List[str]] = None,
):
"""
Helper function to read audio from a microphone using ffmpeg. The default input device will be used unless another
Expand Down Expand Up @@ -138,7 +138,7 @@ def ffmpeg_microphone_live(
stride_length_s: Optional[Union[Tuple[float, float], float]] = None,
format_for_conversion: str = "f32le",
ffmpeg_input_device: Optional[str] = None,
ffmpeg_additional_args: Optional[list[str]] = None,
ffmpeg_additional_args: Optional[List[str]] = None,
):
"""
Helper function to read audio from a microphone using ffmpeg. This will output `partial` overlapping chunks starting
Expand Down

0 comments on commit c2820c9

Please sign in to comment.