Skip to content

Commit b61a191

Browse files
authored
Merge pull request #374 from AI-himedia/cjh
Cjh
2 parents 0f4835d + 3c58597 commit b61a191

9 files changed

Lines changed: 132 additions & 1844 deletions

File tree

frontend/src/pages/service/Call/TTSStreamPlayer.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,29 @@
1+
// const setupMediaSource = (audioRef, onTTSStart, onTTSEnd) => {
2+
// const mediaSource = new MediaSource();
3+
// const sourceBufferRef = { current: null };
4+
5+
// audioRef.current.src = URL.createObjectURL(mediaSource);
6+
7+
// mediaSource.addEventListener("sourceopen", () => {
8+
// try {
9+
// // WebM + Opus 포맷용 SourceBuffer 생성
10+
// sourceBufferRef.current = mediaSource.addSourceBuffer("audio/webm; codecs=opus");
11+
// onTTSStart(sourceBufferRef);
12+
// } catch (e) {
13+
// console.error("SourceBuffer 생성 오류:", e);
14+
// }
15+
// });
16+
17+
// mediaSource.addEventListener("sourceended", () => {
18+
// console.log("MediaSource 재생 종료됨");
19+
// if (onTTSEnd) onTTSEnd();
20+
// });
21+
22+
// return sourceBufferRef;
23+
// };
24+
25+
// export { setupMediaSource };
26+
127
export function setupMediaSource(audioRef, onSourceBufferReady) {
228
const mime = 'audio/webm; codecs="opus"';
329
if (!MediaSource.isTypeSupported(mime)) {

python/Pipfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ redis = "*"
4040
torch = {version = "==2.5.1", index = "pytorch"}
4141
torchvision = {version = "==0.20.1", index = "pytorch"}
4242
torchaudio = {version = "==2.5.1", index = "pytorch"}
43-
langchain-experimental = "*"
4443

4544
websockets = ">=10.0"
4645
sentence-transformers = "*"

python/Pipfile.lock

Lines changed: 105 additions & 119 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

python/api/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,5 @@
44
from .TTSApi import TTSReady_router
55
from .save_audio_file import audio_router
66
from .embedding import embedding_router
7-
from .rag_admin import admin_router
87

9-
routers = [test_router, sms_init_router, sms_router,TTSReady_router, audio_router, embedding_router, admin_router]
8+
routers = [test_router, sms_init_router, sms_router,TTSReady_router, audio_router, embedding_router]

0 commit comments

Comments
 (0)