from rest_framework import serializers class TextToSpeechSerializer(serializers.Serializer): text = serializers.CharField() speaker_wav = serializers.FileField() language = serializers.CharField(default="en")