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")