voice-clone / texttovoice /serializers.py
renator's picture
debugging
4d888b5
raw
history blame
315 Bytes
from rest_framework import serializers
class TextToSpeechSerializer(serializers.Serializer):
text = serializers.CharField(default="In the quest for a sustainable future, renewable energy emerges as a beacon of hope")
speaker_wav = serializers.FileField()
language = serializers.CharField(default="en")