1

How to Install Realistic Text-to-Speech SaaS

Sophia

Last Update 9 maanden geleden

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:

  1. Upload main-file.zip to your server then Extract it.
  2. Copy .env.example file to .env file.
  3. 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 timezone

List of CASHIER_CURRENCY

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

  1. Put Your Purchase Code
  2. Create Your Admin Account
  3. 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.

  1. Daily Free Balance: Set balance value for Daily Free Balance. Only users with balance less than this value will get daily free balance.
  2. Enable Daily Free Balance: Enable or Disable Daily Free Balance
  3. Registration Free Balance: Set balance value for new user
  4. Enable Registration Free Balance: Enable or Disable Registration Free Balance
  5. Realistic Text to Speech API: Get your API Key here
  6. 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.


  1. Add Product
  2. Put Name eg: 1.000 Credits
  3. Set your price
  4. Select one time method
  5. Save product


After product created, click the product then click the price.


  1. Edit metadata of price
  2. Put credits as key then put value eg: 1000
  3. 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


  1. Add endpoint
  2. Put https://yourdomain.ext/stripe/webhook as Endpoint URL
  3. Select events and choose checkout.session.completed and click add events.
  4. 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.


  1. Total User
  2. Current Balance is your Stripe Current Balance
  3. Requests Limit is your Realistic Tex-to-Speech monthly requests limit
  4. 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


Still need help? Message Us