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