voice-clone / texttovoice /serializers.py
renator's picture
Complete the endpoint
2d610a5
raw
history blame
222 Bytes
from rest_framework import serializers
class TextToSpeechSerializer(serializers.Serializer):
text = serializers.CharField()
speaker_wav = serializers.FileField()
language = serializers.CharField(default="en")