Skip to content

YanCastle/castle-audio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

how to use this npm package

before you can use this package,you need a baidu aip project,this is the website[https://ai.baidu.com/docs#/TTS-API/top]

first : you need install package for your node project use this code in command

npm i -S castle-audio

then : import the function

import {set_token} from 'castle-audio'
set_token('your baidu aip token here')

then : you can use the function text2audio to play a text audio

import {text2audio} from 'castle-audio'
text2audio('hi,i am wiki')
text2audio('hi,i am wiki1')

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages