MCPcopy Create free account
hub / github.com/NsLearning/LangHelper / start

Method start

LangHelper/recoder.py:16–25  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

14 self.channels = 1
15
16 def start(self):
17 print("start recording!")
18 self.stream = self.audio.open(
19 format= self.audio_format,
20 channels= self.channels,
21 rate=self.rate,
22 input=True,
23 frames_per_buffer=1280
24 )
25 self.chunks = []
26
27 def stop(self):
28 print("stop recording!")

Callers 4

SpeechRecognitionFunction · 0.80
RealTimeSttFunction · 0.80
main.pyFile · 0.80
start_connectionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected