Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
stop
Method · 0.95
Calls
2
open
Function · 0.85
write
Method · 0.80
Tested by
no test coverage detected