add think animation
This commit is contained in:
parent
938eaff11d
commit
e225fff264
2 changed files with 56 additions and 58 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue