File tree Expand file tree Collapse file tree 5 files changed +15
-2
lines changed Expand file tree Collapse file tree 5 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -71,3 +71,5 @@ sequenceDiagram
71
71
## その他
72
72
73
73
- 文字起こしコンテナが残った場合: ` docker rm $(docker ps -f "name=chatwatcher-recognizer" -q -a) `
74
+ - 文字起こしコンテナを別で立ち上げる場合: ` docker run --rm --name chatwatcher-recognizer -p 5900:5900 -e DISPLAY=:99 -e RECOGNIZER_HEADLESS=false -e CHATWATCHER_ROOM_ID=597378876556967936-271615744947650562 --net=chatwatcher-network ghcr.io/jaoafa/chatwatcher-recognizer `
75
+ - VNC で ` localhost:5900 ` にアクセスして画面を確認できる
Original file line number Diff line number Diff line change @@ -14,6 +14,11 @@ RUN apk update && \
14
14
ttf-freefont \
15
15
nodejs \
16
16
yarn \
17
+ xvfb \
18
+ xauth \
19
+ dbus \
20
+ dbus-x11 \
21
+ x11vnc \
17
22
pulseaudio \
18
23
pulseaudio-utils && \
19
24
apk add --update --no-cache tzdata && \
@@ -38,5 +43,8 @@ RUN chmod +x entrypoint.sh
38
43
39
44
USER speech-recognizer:speech-recognizer
40
45
46
+ ENV RECOGNIZER_HEADLESS false
47
+ ENV DISPLAY :99
48
+
41
49
ENTRYPOINT ["dumb-init" , "--" ]
42
50
CMD ["/app/entrypoint.sh" ]
Original file line number Diff line number Diff line change @@ -9,4 +9,7 @@ pacmd set-default-source VirtualMic
9
9
10
10
pacmd load-module module-native-protocol-unix socket=/tmp/pulseaudio.socket
11
11
12
+ Xvfb :99 -ac -screen 0 1280x1024x16 -listen tcp &
13
+ x11vnc -forever -noxdamage -display :99 &
14
+
12
15
yarn build
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ async function main() {
24
24
"--disable-gpu" ,
25
25
"--ignore-certificate-errors" ,
26
26
"--allow-running-insecure-content" ,
27
- "--window-size=300,300 " ,
27
+ "--window-size=1280,1024 " ,
28
28
] ,
29
29
ignoreDefaultArgs : [ "--mute-audio" ] ,
30
30
} ;
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ function getRoomId() {
76
76
return url . searchParams . get ( "roomId" ) ;
77
77
}
78
78
function connect ( ) {
79
- socket = io . connect ( "ws://chatwatcher :9092" ) ;
79
+ socket = io . connect ( "ws://watcher :9092" ) ;
80
80
socket . emit ( "join" , getRoomId ( ) ) ;
81
81
socket . on ( "audio" , function ( file ) {
82
82
console . log ( "audio event" ) ;
You can’t perform that action at this time.
0 commit comments