Original title: React js with Pipecat Websocket Implement [closed]

Backend guy develop a backend with PY. And send me this script which works fine in windows terminal. I try to convert it in frontend using reactjs. but i get some issue. First of all the frontend and backend is connected with websocket. But from frontend am sending audio and its not receiving it in backend. Can someone please help me to convert this in reactjs? i cant share full code because of text limiation Am using localhost in frontend and server url also http This is the Test.py which working fine in terminal import asyncio import aiohttp import websockets import wave import time import os import numpy as np import pyaudio from datetime import datetime import threading import queue import keyboard import sys

Configuration

SERVER_URL = "" TARGET_SAMPLE_RATE = 16000 TARGET_CHANNELS = 1 TARGET_SAMPLE_WIDTH = 2 CHUNK_SIZE = 1024 SILENCE_THRESHOLD = 30 RECEIVE_POLL_TIMEOUT = 0.1 RESPONSE_END_SILENCE = 2.0 MICROPHONE_BOOST = 4.0 # Reduced boost to prevent overflow

class Voice

Read the original question here