Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions frontend/src/app/voice-donation/VoiceDonation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ export default function VoiceDonation() {
email: email,
nickname: nickname,
verification_id: verification?.id || null,
transcription_from_client: transcription,
};
formData.append("metadata", JSON.stringify(metadata));

Expand Down
2 changes: 2 additions & 0 deletions unmute/tts/voice_donation.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ class VoiceDonationSubmission(BaseModel):
verification_id: uuid.UUID
# Only CC0 is allowed for now, but storing in case we decide to change it later
license: Literal["CC0"] = "CC0"
# The transcription is sent by the client, so it could be manipulated
transcription_from_client: str


class VoiceDonationMetadata(BaseModel):
Expand Down