PHP Classes

How to use the ChatGPT text to speech API to ChatGPT Text and Speech Converter: Convert text to audio and generate audio from text

Recommend this page to a friend!
  Info   View files Documentation   View files View files (11)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog (1)    
Last Updated Ratings Unique User Downloads Download Rankings
2024-05-14 (15 days ago) RSS 2.0 feedNot yet rated by the usersTotal: 101 This week: 6All time: 9,783 This week: 15Up
Version License PHP version Categories
chatgpt-text-and-spe 1.0.0MIT/X Consortium ...5PHP 5, Text processing, Web services, A..., A...
Collaborate with this project 

Author

Description

This package can convert text to audio and generate audio from text.

It provides a simple Web application that can show forms to let the user enter text or upload audio files.

The package can process the text using ChatGPT API and outputs audio with the speech generated from the input text.

It can also take an audio file and transcribe the spoken words into a text string.

Picture of Mr.shaggyy83
Name: Mr.shaggyy83 <contact>
Classes: 5 packages by
Country: Turkey Turkey
Age: ???
All time rank: 409872 in Turkey Turkey
Week rank: 13 Up2 in Turkey Turkey Up
Innovation award
Innovation award
Nominee: 3x

Documentation

You can do using this program:

1)You can ask questions to ChatGPT and save the responses in any of the formats: "mp3", "aac", "flag", "pcm". You can access the audio files from the "output_speech" folder within the project.

2)You can write or copy any text and save it again in any of the following formats: "mp3", "aac", "flag", "pcm". You can access the sound files from the "output_speech" folder in the project.

3)You can upload an audio file up to 25 MB in size and convert it to a text file. You can access the text files from the "output" folder within the project. To upload the audio file:

a) You need to upload the file from the "Choose File" section, then click the "Send File" button, and finally click the "Submit" button.

To use the program, you need to enter your own OpenAI key into the $apiKey variable on the index.php page.


  Files folder image Files  
File Role Description
Files folder imagecss (1 file)
Files folder imagejs (3 files)
Files folder imageoutput (1 file)
Files folder imageoutput_speech (1 file)
Files folder imageupload (1 file)
Accessible without login Plain text file .gitattributes Data Auxiliary data
Accessible without login Plain text file function.php Aux. Script with functions
Accessible without login Plain text file index.php Appl. Auxiliary script
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  css  
File Role Description
  Accessible without login Plain text file style.css Data Auxiliary data

  Files folder image Files  /  js  
File Role Description
  Accessible without login Plain text file jquery-3.6.0.min.js Data Auxiliary data
  Accessible without login Plain text file jquery.form.min.js Data Auxiliary data
  Accessible without login Plain text file script.js Data Auxiliary data

  Files folder image Files  /  output  
File Role Description
  Accessible without login Plain text file empty.txt Data Auxiliary data

  Files folder image Files  /  output_speech  
File Role Description
  Accessible without login Plain text file empty.mp3 Data Auxiliary data

  Files folder image Files  /  upload  
File Role Description
  Accessible without login Plain text file empty.txt Data Auxiliary data

 Version Control Unique User Downloads Download Rankings  
 100%
Total:101
This week:6
All time:9,783
This week:15Up