View the Code
See the code for this example on Github.
Introduction
Parler-TTS Mini is a lightweight text-to-speech (TTS) model, trained on 45K hours of audio data, that can generate high-quality, natural sounding speech with features that can be controlled using a simple text prompt. This guide explains how to deploy and use it on Beam.Deployment Setup
Define the model and its dependencies using theparlertts_image
:
Inference Function
Thegenerate_speech
function processes text and generates speech audio:
Deployment
Deploy the API to Beam:API Usage
Send aPOST
request with the following JSON payload: