• moto's avatar
    Embed audio samples in generated tutorials (#1985) · 34e69f97
    moto authored
    It turned out that generated tutorials can embed the audio if the following conditions are met.
    This commit changes how audio samples are shown in tutorials so that they become playable in doc.
    
    1. There is only one `IPython.display.Audio` call in a cell
    2. An object of `IPython.display.Audio` is the last object interpreter receives in the cell
    3. Audio format is `wav`
       (`flac` can be embedded as well, but browsers (Chrome/Safari) won't play it)
    
    Ref: https://stackoverflow.com/a/33109647
    34e69f97
tacotron2_pipeline_tutorial.py 10.5 KB