Itako Text Transformer Request
Installation
npm install itako-text-transformer-request --save
Usage
to convert the token to the parameter of axios. request-token is available in audio-reader, etc.
<script src="https://npmcdn.com/itako"></script>
<script src="https://npmcdn.com/itako-audio-reader-audio-context"></script>
<script src="https://npmcdn.com/itako-text-transformer-request"></script>
<script>
var reader = new ItakoAudioReaderAudioContext();
var transformer = new ItakoTextTransformerRequest('text', {
baseUrl: 'http://voicetext.berabou.me/',
toType: 'audio',
});
var itako = new Itako([reader], [transformer]);
// audio reader say "konton ji yonoiko"
itako.read('こんとんじょのいこ');
</script>
Development
Requirement global
- NodeJS v5.10.0
- Npm v3.8.3
git clone https://github.com/itakojs/itako-text-transformer-request
cd your-module-name
npm install
npm test