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

Method save_to_pcm

LangHelper/recoder.py:45–47  ·  view source on GitHub ↗
(self, filename, frames)

Source from the content-addressed store, hash-verified

43 yield data
44
45 def save_to_pcm(self, filename, frames):
46 with open(filename, "wb") as f:
47 f.write(b"".join(frames))
48
49 def save_to_wav(self,filename,frames):
50 wf = wave.open(filename, 'wb')

Callers 1

stopMethod · 0.95

Calls 2

openFunction · 0.85
writeMethod · 0.80

Tested by

no test coverage detected