Fix issue when the audio stream mixes sample rates and numpy array data types (#188)

* Fix code

* Fix

* keep same
This commit is contained in:
Freddy Boulton
2025-03-18 18:53:47 -04:00
committed by GitHub
parent 5a196868dd
commit 44aac8d964
3 changed files with 19 additions and 9 deletions

View File

@@ -2,11 +2,10 @@ import asyncio
import base64
import json
from pathlib import Path
import sounddevice as sd
import aiohttp # pip install aiohttp
import gradio as gr
import numpy as np
import aiohttp # pip install aiohttp
from dotenv import load_dotenv
from fastapi import FastAPI
from fastapi.responses import HTMLResponse, StreamingResponse