Skip to content

Commit

Permalink
Merge pull request #44 from YCHuang2112sub/main
Browse files Browse the repository at this point in the history
Adding a notebook demo, and also the sound playing function in the notebook
  • Loading branch information
tuna2134 authored Aug 23, 2023
2 parents 4d22817 + 612ad8b commit 091257d
Show file tree
Hide file tree
Showing 3 changed files with 151 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -129,4 +129,7 @@ dmypy.json
.pyre/

voice.wav
audio.zip
audio.zip

# vscode
.vscode/*
7 changes: 5 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,8 @@ Example
f.write(await audio_query.synthesis(speaker=4))
if __name__ == "__main__":
asyncio.run(main())
if __name__ == "__main__":
## already in asyncio (in a Jupyter notebook, for example)
# await main()
## otherwise
asyncio.run(main())
142 changes: 142 additions & 0 deletions examples/basic.ipynb

Large diffs are not rendered by default.

0 comments on commit 091257d

Please sign in to comment.