Skip to content

Commit c51fdcb

Browse files
committed
Fix tutorial reference to sing function.
1 parent 005e1ec commit c51fdcb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/tutorials/speech.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,11 @@ The mapping from pitch numbers to musical notes is shown below:
171171

172172
The ``sing`` function must take phonemes and pitch as input like this::
173173

174-
speech.sing("DOWWWW", 115)
174+
speech.sing("#115DOWWWW")
175+
176+
Notice how the pitch to be sung is prepended to the phoneme with a hash
177+
(``#``). The pitch will remain the same for subsequent phonemes until a new
178+
pitch is annotated.
175179

176180
The following example demonstrates how all three generative functions (``say``,
177181
``pronounce`` and ``sing``) can be used to produce speech like output:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy