Skip to content

Commit 2264dce

Browse files
author
Florian Treml
committed
Set voice
1 parent 0b60410 commit 2264dce

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

connectors/sapcai/server/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const app = require('express')()
66
const http = require('http').Server(app)
77
const io = require('socket.io')(http)
88

9-
const SAPCAI_TOKEN = '5ee1b84709db76f5bbff8ea14dc9ad85'
9+
const SAPCAI_TOKEN = process.env.SAPCAI_TOKEN
1010

1111
app.use(cors())
1212

@@ -94,7 +94,8 @@ io.on('connection', (socket) => {
9494
method: 'GET',
9595
url: 'https://speech.botiumbox.com/api/tts/en',
9696
params: {
97-
text: message.content
97+
text: message.content,
98+
voice: 'dfki-poppy-hsmm'
9899
},
99100
responseType: 'arraybuffer'
100101
}

0 commit comments

Comments
 (0)