Giter VIP home page Giter VIP logo

laravel-text-to-speech's Introduction

Laravel Text To Speech Conveter

Laravel Text to speech converter is transformings the text into artificial human speech. Convert text into corresponding language speech. You can download that audio speech and play that audio speech.

  • Create a laravel project using composer

      Laravel new text-to-speech-conveter
    
  • Create an account in VoiceRSS and get your API key from VoiceRSS

    Create an account in VoiceRSS..
    Login in VoiceRSS..
    Get your API key.

  • Environment File Set your API Key

      VOICE_RSS_API_KEY=your_api_key
    
  • Filesystem Configuration

    In config/filesystems.php add following code for creating snapshot disk on which all snapshots will be saved. You can change the driver and root values.

     // ...
     'disks' => [
         ...
         'speeches' => [
             'driver' => 'local',
             'root' => storage_path('app/public/speeches'),
         ],
         ...
     ],
     // ... 
    
  • Create A Library For VoiceRSS

    Click here to download VoiceRSS SDK. Extract zip and put the voicerss_tts.php file inside App\Library folder and rename to VoiceRss.php.

  • Convert Text Into Speech

    Create a form which takes text and textual content language ( In which language you have written text ).

     use App\Library\VoiceRSS;
     // ...
     $tts = new VoiceRSS;
     $voice = $tts->speech([
         'key' => env('VOICE_RSS_API_KEY'),
         'hl' =>  $request->lan,
         'src' => $request->text,
         'r' => '0',
         'c' => 'mp3',
         'f' => '44khz_16bit_stereo',
         'ssml' => 'false',
         'b64' => 'false'
     ]);
    

    Click here to view VoiceRss Documen for know more about VoiceRSS.

laravel-text-to-speech's People

Contributors

pritesh13 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.