|
@@ -9,7 +9,7 @@ def Audio(audio: np.ndarray, rate: int, name: str):
|
|
amplitude = np.iinfo(np.int16).max
|
|
amplitude = np.iinfo(np.int16).max
|
|
|
|
|
|
write(filename, rate, (audio*amplitude).astype(np.int16))
|
|
write(filename, rate, (audio*amplitude).astype(np.int16))
|
|
-
|
|
|
|
|
|
+ return IPython.display.Markdown(f"[{filename}]({filename})")
|
|
return IPython.display.HTML(f"""
|
|
return IPython.display.HTML(f"""
|
|
<audio controls>
|
|
<audio controls>
|
|
<source src="{filename}" type="audio/wav">
|
|
<source src="{filename}" type="audio/wav">
|