Fixed the interruption problem encountered by pyaudio during playback
This commit is contained in:
parent
c009e237ff
commit
938d195158
@ -1,7 +1,7 @@
|
||||
__title__ = "pycw"
|
||||
__description__ = "Generate Morse Code (CW) audio files in Python."
|
||||
__url__ = "https://github.com/bigsk05/pycw"
|
||||
__version__ = '0.0.2'
|
||||
__version__ = '0.0.3'
|
||||
__author__ = "Ian Xia"
|
||||
__author_email__ = "i@ianxia.com"
|
||||
__license__ = "Apache 2.0"
|
||||
|
@ -78,7 +78,7 @@ def generate(
|
||||
) -> numpy.array:
|
||||
text = normalize_text(text)
|
||||
samples = list(_generate_samples(text, wpm, tone, volume, sample_rate))
|
||||
return numpy.concatenate(samples)
|
||||
return numpy.concatenate(samples).tobytes()
|
||||
|
||||
|
||||
def stream_wave(
|
||||
|
Loading…
Reference in New Issue
Block a user