We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b5c055 commit de0189bCopy full SHA for de0189b
assemblyai/extras.py
@@ -1,5 +1,5 @@
1
import time
2
-from typing import BinaryIO, Generator
+from typing import BinaryIO, Generator, Optional
3
from warnings import warn
4
5
from . import api
@@ -22,7 +22,7 @@ def __init__(
22
23
24
class MicrophoneStream:
25
- def __init__(self, sample_rate: int = 44_100, device_index: int = None):
+ def __init__(self, sample_rate: int = 44_100, device_index: Optional[int] = None):
26
"""
27
Creates a stream of audio from the microphone.
28
0 commit comments