Skip to content

Commit 091257d

Browse files
authored
Merge pull request #44 from YCHuang2112sub/main
Adding a notebook demo, and also the sound playing function in the notebook
2 parents 4d22817 + 612ad8b commit 091257d

File tree

3 files changed

+151
-3
lines changed

3 files changed

+151
-3
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,4 +129,7 @@ dmypy.json
129129
.pyre/
130130

131131
voice.wav
132-
audio.zip
132+
audio.zip
133+
134+
# vscode
135+
.vscode/*

README.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,8 @@ Example
4242
f.write(await audio_query.synthesis(speaker=4))
4343
4444
45-
if __name__ == "__main__":
46-
asyncio.run(main())
45+
if __name__ == "__main__":
46+
## already in asyncio (in a Jupyter notebook, for example)
47+
# await main()
48+
## otherwise
49+
asyncio.run(main())

examples/basic.ipynb

Lines changed: 142 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)