Skip to content

Commit 2380dde

Browse files
author
Attila Ujj
committed
BOT-1988 service names using '_' to '-'
1 parent b1783dd commit 2380dde

File tree

9 files changed

+32
-31
lines changed

9 files changed

+32
-31
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
logs
2-
docker-compose.override.yml
2+
docker-compose.override.yml
3+
.idea

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ There are Websocket endpoints exposed for real-time audio decoding. Find the API
101101

102102
The Websocket endpoints are:
103103

104-
* English: ws://127.0.0.1/stt_en/client/ws/speech
105-
* German: ws://127.0.0.1/stt_de/client/ws/speech
104+
* English: ws://127.0.0.1/stt-en/client/ws/speech
105+
* German: ws://127.0.0.1/stt-de/client/ws/speech
106106

107107
## File System Watcher
108108

dictate/server.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ app.get('/demos/mob.html', (req, res) => {
1111
let mobHtml = fs.readFileSync(`${dictateDir}/demos/mob.html`, { encoding: 'utf-8' })
1212

1313
const wsProtocol = (req.protocol === 'https' ? 'wss:' : 'ws:')
14-
const sttUrlDe = process.env.STT_URL_DE || `${wsProtocol}//${req.hostname}/stt_de`
15-
const sttUrlEn = process.env.STT_URL_EN || `${wsProtocol}//${req.hostname}/stt_en`
14+
const sttUrlDe = process.env.STT_URL_DE || `${wsProtocol}//${req.hostname}/stt-de`
15+
const sttUrlEn = process.env.STT_URL_EN || `${wsProtocol}//${req.hostname}/stt-en`
1616

1717
mobHtml = mobHtml.replace(
1818
'<option value="wss://bark.phon.ioc.ee:8443/dev/duplex-speech-api/ws/speech|wss://bark.phon.ioc.ee:8443/dev/duplex-speech-api/ws/status">eesti keel</option>',

docker-compose-dev.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,22 @@ services:
2222
volumes:
2323
- "./watcher:/app/watch"
2424
- "./logs/watcher:/app/logs"
25-
stt_en:
25+
stt-en:
2626
build:
2727
context: stt
2828
dockerfile: Dockerfile.kaldi.en
2929
image: botium/botium-speech-kaldi-en:develop
3030
restart: always
3131
volumes:
32-
- "./logs/stt_en:/opt/logs"
33-
stt_de:
32+
- "./logs/stt-en:/opt/logs"
33+
stt-de:
3434
build:
3535
context: stt
3636
dockerfile: Dockerfile.kaldi.de
3737
image: botium/botium-speech-kaldi-de:develop
3838
restart: always
3939
volumes:
40-
- "./logs/stt_de:/opt/logs"
40+
- "./logs/stt-de:/opt/logs"
4141
tts:
4242
build:
4343
context: tts

docker-compose-picotts.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ services:
1111
image: botium/botium-speech-frontend:latest
1212
restart: always
1313
environment:
14-
BOTIUM_API_TOKENS:
14+
BOTIUM_API_TOKENS:
1515
BOTIUM_SPEECH_PROVIDER_TTS: picotts
1616
BOTIUM_SPEECH_PROVIDER_STT: kaldi
1717
volumes:
@@ -22,16 +22,16 @@ services:
2222
volumes:
2323
- "./watcher:/app/watch"
2424
- "./logs/watcher:/app/logs"
25-
stt_en:
25+
stt-en:
2626
image: botium/botium-speech-kaldi-en:latest
2727
restart: always
2828
volumes:
29-
- "./logs/stt_en:/opt/logs"
30-
stt_de:
29+
- "./logs/stt-en:/opt/logs"
30+
stt-de:
3131
image: botium/botium-speech-kaldi-de:latest
3232
restart: always
3333
volumes:
34-
- "./logs/stt_de:/opt/logs"
34+
- "./logs/stt-de:/opt/logs"
3535
dictate:
3636
image: botium/botium-speech-dictate:latest
3737
restart: always

docker-compose.override.template.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ services:
33
dictate:
44
image: botium/botium-speech-dictate:develop
55
environment:
6-
STT_URL_DE: wss://speech.botiumbox.com/stt_de
7-
STT_URL_EN: wss://speech.botiumbox.com/stt_en
6+
STT_URL_DE: wss://speech.botiumbox.com/stt-de
7+
STT_URL_EN: wss://speech.botiumbox.com/stt-en

docker-compose.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ services:
1111
image: botium/botium-speech-frontend:${TAG}
1212
restart: always
1313
environment:
14-
BOTIUM_API_TOKENS:
14+
BOTIUM_API_TOKENS:
1515
BOTIUM_SPEECH_PROVIDER_TTS: marytts
1616
BOTIUM_SPEECH_PROVIDER_STT: kaldi
1717
BOTIUM_SPEECH_GOOGLE_CLIENT_EMAIL:
@@ -24,16 +24,16 @@ services:
2424
volumes:
2525
- "./watcher:/app/watch"
2626
- "./logs/watcher:/app/logs"
27-
stt_en:
27+
stt-en:
2828
image: botium/botium-speech-kaldi-en:${TAG}
2929
restart: always
3030
volumes:
31-
- "./logs/stt_en:/opt/logs"
32-
stt_de:
31+
- "./logs/stt-en:/opt/logs"
32+
stt-de:
3333
image: botium/botium-speech-kaldi-de:${TAG}
3434
restart: always
3535
volumes:
36-
- "./logs/stt_de:/opt/logs"
36+
- "./logs/stt-de:/opt/logs"
3737
tts:
3838
image: botium/botium-speech-marytts:${TAG}
3939
restart: always

frontend/resources/.env

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ BOTIUM_SPEECH_MARYTTS_URL=http://tts:59125
2626
BOTIUM_SPEECH_PICO_CMDPREFIX=pico2wave
2727

2828
# STT Provider Kaldi URLs
29-
BOTIUM_SPEECH_KALDI_URL_EN=http://stt_en:80/client/dynamic/recognize
30-
BOTIUM_SPEECH_KALDI_URL_DE=http://stt_de:80/client/dynamic/recognize
29+
BOTIUM_SPEECH_KALDI_URL_EN=http://stt-en:80/client/dynamic/recognize
30+
BOTIUM_SPEECH_KALDI_URL_DE=http://stt-de:80/client/dynamic/recognize
3131

3232
# STT Provider Google
3333
#BOTIUM_SPEECH_GOOGLE_KEYFILE=./resources/google.json

nginx.conf

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,23 @@ http {
1616
proxy_pass http://$upstream_tts:59125;
1717
proxy_read_timeout 300;
1818
}
19-
rewrite ^/stt_en$ /stt_en/ redirect;
20-
location /stt_en/ {
19+
rewrite ^/stt-en$ /stt-en/ redirect;
20+
location /stt-en/ {
2121
resolver 127.0.0.11 valid=30s;
22-
set $upstream_stt_en stt_en;
23-
rewrite ^\/stt_en\/(.*) /$1 break;
22+
set $upstream_stt_en stt-en;
23+
rewrite ^\/stt-en\/(.*) /$1 break;
2424
proxy_http_version 1.1;
2525
proxy_cache_bypass $http_upgrade;
2626
proxy_set_header Upgrade $http_upgrade;
2727
proxy_set_header Connection "Upgrade";
2828
proxy_pass http://$upstream_stt_en;
2929
proxy_read_timeout 300;
3030
}
31-
rewrite ^/stt_de$ /stt_de/ redirect;
32-
location /stt_de/ {
31+
rewrite ^/stt-de$ /stt-de/ redirect;
32+
location /stt-de/ {
3333
resolver 127.0.0.11 valid=30s;
34-
set $upstream_stt_de stt_de;
35-
rewrite ^\/stt_de\/(.*) /$1 break;
34+
set $upstream_stt_de stt-de;
35+
rewrite ^\/stt-de\/(.*) /$1 break;
3636
proxy_http_version 1.1;
3737
proxy_cache_bypass $http_upgrade;
3838
proxy_set_header Upgrade $http_upgrade;

0 commit comments

Comments
 (0)