How to Install Realistic Text-to-Speech SaaS
Sophia
Last Update il y a 2 ans
Server Requirements:
- PHP >= 7.3
- BCMath PHP Extension
- Ctype PHP Extension
- Fileinfo PHP Extension
- JSON PHP Extension
- Mbstring PHP Extension
- OpenSSL PHP Extension
- PDO PHP Extension
- Tokenizer PHP Extension
- XML PHP Extension
- MySQL/MariaDB/PostgreSQL
3th Party Requirements:
Installation:
- Upload main-file.zip to your server then Extract it.
- Copy .env.example file to .env file.
- Open .env file and edit the values:
APP_NAME="YOUR APP NAME"
APP_ENV=production
APP_KEY=YOUR_APP_KEY
APP_DEBUG=false
APP_URL=https://yourdomain.ext
DB_CONNECTION=YOUR_DATABASE_CONNECTION
DB_HOST=YOUR_DATABASE_HOST
DB_PORT=YOUR_DATABASE_PORT
DB_DATABASE=YOUR_DATABASE_NAME
DB_USERNAME=YOUR_DATABASE_USERNAME
DB_PASSWORD=YOUR_DATABASE_PASSWORD
MAIL_MAILER=YOUR_MAILER
MAIL_HOST=YOUR_MAIL_HOST
MAIL_PORT=YOUR_MAIL_PORT
MAIL_USERNAME=YOUR_MAIL_USERNAME
MAIL_PASSWORD=YOUR_MAIL_PASSWORD
MAIL_ENCRYPTION=YOUR_MAIL_ECRYPTION
MAIL_FROM_ADDRESS=YOUR_MAIL_FROM_ADDRESS
STRIPE_KEY=YOUR_STRIPE_KEY
STRIPE_SECRET=YOUR_STRIPE_SECRET_KEY
CASHIER_CURRENCY=YOUR_STRIPE_DEFAULT_CURRENCY
CASHIER_CURRENCY_LOCALE=YOUR_STRIPE_DEFAULT_LOCALE
APP_TZ=YOUR_TIMEZONE
APP_LOCALE=YOUR_APP_LOCALE
APP_SHORT_NAME=YOUR_APP_SHORT_NAME
You can generate APP_KEY here or by using CLI from your ssh: php artisan key:generate
List of CASHIER_CURRENCY_LOCALE
List of supported APP_LOCALE
- de
- en
- es
- fr
- hi
- it
- ja
- ko
- pt
- th
After you done with .env values, Save it and now you can open the browser then go to https://yourdomain.ext/installation
- Put Your Purchase Code
- Create Your Admin Account
- Login as Admin
Note: After the installation is complete, you will not be able to access the installation URL again.
Settings:
In the admin dashboard, go to Settings.
- Daily Free Balance: Set balance value for Daily Free Balance. Only users with balance less than this value will get daily free balance.
- Enable Daily Free Balance: Enable or Disable Daily Free Balance
- Registration Free Balance: Set balance value for new user
- Enable Registration Free Balance: Enable or Disable Registration Free Balance
- Realistic Text to Speech API: Get your API Key here
- Enable API Services: This will open developer page in user dashboard and user can use API to generate Text-to-Speech and other methods. This feature is great for B2B.
Note: If you Enable Daily Free Balance, you should create cron on your server with this command:
* * * * * cd /path-to-your-project && php artisan schedule:run >> /dev/null 2>&1
Products:
In the admin dashboard, go to Products.
Go to Stripe Dashboard to manage Your products.
- Add Product
- Put Name eg: 1.000 Credits
- Set your price
- Select one time method
- Save product
After product created, click the product then click the price.
- Edit metadata of price
- Put credits as key then put value eg: 1000
- Save
You can create as many products as you want. Go back to the Products page in your admin dashboard and make sure there are active products there.
Stripe Webhook:
Go to Stripe Webhook Dashboard
- Add endpoint
- Put https://yourdomain.ext/stripe/webhook as Endpoint URL
- Select events and choose checkout.session.completed and click add events.
- Click Add endpoint to save it.
Users:
In the admin dashboard, go to Users.
You can search, Ban and Unban users
Dashboard:
In the admin dashboard, go to Dashboard.
- Total User
- Current Balance is your Stripe Current Balance
- Requests Limit is your Realistic Tex-to-Speech monthly requests limit
- Requests Remaining is your Realistic Tex-to-Speech requests remaining
Change Logo & Favicon:
Put your logo into public/src/assets/img folder
Put your favicon into public/src/assets/img/favicons folder. You can generate favicon here