(self, root_path)
| 4 | |
| 5 | class VoiceRecorder: |
| 6 | def __init__(self, root_path): |
| 7 | |
| 8 | self.root_path = root_path # path to save cache recording file |
| 9 | self.audio = pyaudio.PyAudio() |
| 10 | self.stream = None |
| 11 | self.chunks = [] #.pcm data byte chunks |
| 12 | self.audio_format = pyaudio.paInt16 |
| 13 | self.rate = 16000 |
| 14 | self.channels = 1 |
| 15 | |
| 16 | def start(self): |
| 17 | print("start recording!") |
nothing calls this directly
no outgoing calls
no test coverage detected