How it Works
Authentication
The Website supports multiple authentication methods: Google, GitHub, Discord and Email/Password.
Session-based Authentication: The server generates a session and stores the user's information.
Transcription
The /transcribe page accepts an audio file or URL and transcribes it to text using SentiraAI API. The transcription can be returned in various formats (plain text, SRT, VTT). For YouTube URLs, the API first attempts to fetch subtitles. If subtitles are unavailable, it downloads the audio and sends it to SentiraAI API for transcription.
Summarization
The /summarize page accepts a text input and generates a summary using SentiraAI's AI model. Users can specify the desired summary length, format (bullet points or paragraph), and an optional additional command for the model.
User Credits
Each transcription or summarization task consumes user credits based on the audio/text duration. Users can check their credit balance and add more credits as needed.
Stripe Payments
The website uses Stripe for handling payments. Users can add credits to their account using the Stripe payment gateway. The website also supports webhook events for handling payment-related events.
API Keys
Users can generate and manage their API keys from the website. The API keys are used for authenticating requests to the SentiraAI API. APIs can be used to access SentiraAI API from the browser, bots, or other third-party applications.
User Dashboard
The user dashboard displays the user's credit balance, usage history, and other account details. Users can also manage their API keys and other settings from the dashboard.
Logout
The user can log out from the website, which will destroy the session and log the user out from the server.