0.0.7 • Published 3 years ago
txttospeech v0.0.7
This package works only japanese!
Install
npm i txttospeech
Usage
AquesTalk
const aquesTalk = require('txttospeech').AquesTalk;
const connection = await msg.member.voice.channel.join()
//Less than 140 characters
//ID :
//AQTK1 :
// F1
// F2
// M1
// DVD
// IMD1
// JGR
// R1
//AQTK2 :
// RM
// F1C
// HUSKEY
// M4B
// MF1
// RB2
// RB3
// ROBO
// YUKKURI
// F4
// M5
// MF2
// RM3
//AQTK10 :
// F1
// F2
// F3
// M1
// M2
// R1
// R2
const aques = await aquesTalk.createVoice("おはよう" , {engine : "aqtk1" , voice : "f1" , speed : 110})
connection.play(aques)
Voiceroid (Slow)
const voiceroid = require('txttospeech').Voiceroid;
const connection = await msg.member.voice.channel.join()
//Less than 100 characters
//ID :
// 琴葉 葵 : 551
// 琴葉 茜 : 552
// 琴葉 葵(蕾) 555 v5? 動作不能
// 琴葉 茜(蕾) : 556 v5? 動作不能
// 結月ゆかり 553
// 紲星あかり : 554
// 吉田くん : 1201
// 東北ずん子 : 1202
// 民安ともえ(弦巻マキ) : 1205
// 水奈瀬コウ : 1207
// 京町セイカ : 1208
// 東北きりたん : 1209
// 桜乃そら : 1210
// 東北イタコ : 1211
// 伊織弓鶴 : 1214
// 音街ウナ : 2006
const voice = await voiceroid.createVoice("こんにちは" , {id : "1209" , speed : 100})
connection.play(voice)
CoeFont Studio (Very slow)
New
const coeFontStudio = require('txttospeech').CoeFontStudio;
//ID :
//// allail
// millial
const connection = await msg.member.voice.channel.join()
const coeFont = await coeFontStudio.createVoice("こんばんわ" , {id : "allail"})
connection.play(coeFont)
Old
const coeFontStudio = require('txttospeech').CoeFontStudio;
const connection = await msg.member.voice.channel.join()
//Less than 30 characters
const coeFont = await coeFontStudio.createVoice_old("こんばんわ")
connection.play(coeFont)