Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

U2 update with TTS pipeline #140

Merged
merged 6 commits into from
Sep 14, 2023
Merged

Conversation

MKhalusova
Copy link
Contributor

Now that we have a new pipeline, I've added a small update to Unit 2 illustrating how to use the TTA/TTS pipeline for speech generation and music generation (we didn't have anything about music generation, so this may be a nice addition)

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Sep 12, 2023

The documentation is not available anymore as the PR was closed or merged.

@MKhalusova MKhalusova marked this pull request as ready for review September 12, 2023 16:04
Copy link
Collaborator

@sanchit-gandhi sanchit-gandhi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks super! Thanks for updating @MKhalusova

chapters/en/chapter2/tts_pipeline.mdx Outdated Show resolved Hide resolved
chapters/en/chapter2/tts_pipeline.mdx Outdated Show resolved Hide resolved
chapters/en/chapter2/tts_pipeline.mdx Outdated Show resolved Hide resolved
chapters/en/chapter2/tts_pipeline.mdx Outdated Show resolved Hide resolved
chapters/en/chapter2/tts_pipeline.mdx Outdated Show resolved Hide resolved
chapters/en/chapter2/tts_pipeline.mdx Outdated Show resolved Hide resolved
chapters/en/chapter2/tts_pipeline.mdx Outdated Show resolved Hide resolved
Audio(output["audio"][0], rate=32000)
```

Note: the sampling rate value for music generation comes from the configuration of the model.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ylacombe - should we add an attribute sampling_rate to the config of MusicGen so that we can retrieve it easily?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That would be great! at the moment, the output for MusicGen only contains the audio array, and no sampling rate.

chapters/en/chapter2/tts_pipeline.mdx Outdated Show resolved Hide resolved
@MKhalusova MKhalusova merged commit 44c0ab5 into huggingface:main Sep 14, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants