add think animation

This commit is contained in:
riqo 2020-11-08 16:12:05 -06:00
commit e225fff264
2 changed files with 56 additions and 58 deletions

View file

@ -34,7 +34,7 @@ function createWindow() {
// Create the browser window.
win = new BrowserWindow({
width: 800,
height: 600,
height: 1200,
webPreferences: {
// Use pluginOptions.nodeIntegration, leave this alone
// See nklayman.github.io/vue-cli-plugin-electron-builder/guide/security.html#node-integration for more info
@ -59,7 +59,10 @@ function createWindow() {
recorder.start({
onAudio: (audio: object, speech: boolean) => {
if (win) {
win.webContents.send('render-audio', audio)
win.webContents.send('render-audio', {
audio: audio,
speech: speech
})
}
if (speech) {
// TODO: send audio to crimata BE