admin管理员组

文章数量:1279187

I have my project in next and react js, The project uses microphone for some purpose, I have used window.SpeechRecognition and SpeechSynthesisUtterance . I have used electron js to make it desktop app. The both speech feature working well on browser WebView, but Facing issue SpeechRecognition in desktop app , getting issue as "chunked_data_pipe_upload_data_stream(217)] OnSizeReceived failed with Error: -2"

const { app, BrowserWindow } = require("electron");
const path = require("path");

let mainWindow;

app.whenReady().then(() => {
  mainWindow = new BrowserWindow({
    width: 1028,
    height: 780,
    webPreferences: {
      nodeIntegration: true,
    },
  });

  const startUrl = 
    "http://localhost:3000/";

  mainWindow.loadURL(startUrl);

  mainWindow.on("closed", () => (mainWindow = null));
});

For electron js i have only used this code , there is nothing more in this like payload, contextBridge etc.

You can Refer project code at

本文标签: reactjschunkeddatapipeuploaddatastreamcc(217) OnSizeReceived failed with Error 2Stack Overflow