# Vosk server docker implementation with asterisk

**URL:** <https://community.asterisk.org/t/vosk-server-docker-implementation-with-asterisk/96365>\
**Category:** Asterisk Support\
**Created:** [March 31, 2023, 12:18pm UTC](https://community.asterisk.org/t/vosk-server-docker-implementation-with-asterisk/96365 "2023-03-31T12:18:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![helpinghandindia](https://avatars.discourse-cdn.com/v4/letter/h/439d5e/32.png) [@helpinghandindia](https://community.asterisk.org/u/helpinghandindia)\
**Post date:** [March 31, 2023, 12:18pm UTC](https://community.asterisk.org/t/vosk-server-docker-implementation-with-asterisk/96365/1 "2023-03-31T12:18:34Z")

</div>

Hello

docker run -d -p 2700:2700 alphacep/kaldi-en:latest

pls guide how to use two different model/language on same asterisk server ?  
One speech model is working fine but we need two model/languages, English and Hindi .  
pls see.

---

<div class="post-metadata">

**Author:** ![david551](https://avatars.discourse-cdn.com/v4/letter/d/3bc359/32.png) [@david551](https://community.asterisk.org/u/david551)\
**Post date:** [March 31, 2023, 12:33pm UTC](https://community.asterisk.org/t/vosk-server-docker-implementation-with-asterisk/96365/2 "2023-03-31T12:33:36Z")

</div>

Running Asterisk under docker isn’t something that is really supported.

You can run two instances of the Asterisk daemon on the same server, by allocating them different port numbers and using the configuration file option on the command line to point them to different asterisk.conf files.

Otherwise the language is normally set as a property of the endpoint on which the call originated, but can be changed using `Set(CHANNEL(language)=....)`

I would have thought you would have needed at least Tamil, as well to give reasonable coverage of India.

---

<div class="post-metadata">

**Author:** ![ambiorixg12](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/ambiorixg12/32/1887_2.png) [@ambiorixg12](https://community.asterisk.org/u/ambiorixg12)\
**Post date:** [April 1, 2023, 2:23am UTC](https://community.asterisk.org/t/vosk-server-docker-implementation-with-asterisk/96365/3 "2023-04-01T02:23:23Z")

</div>

> [@david551](#):
>
> Running Asterisk under docker isn’t something that is really supported.

David as your answers are always quite accurate and with solid technical background, could you provide more details about this, as I have several Asterisk servers running very stable on docker containers, maybe I have missed something and this is the reason why you make such a statement.

---

<div class="post-metadata">

**Author:** ![david551](https://avatars.discourse-cdn.com/v4/letter/d/3bc359/32.png) [@david551](https://community.asterisk.org/u/david551)\
**Post date:** [April 1, 2023, 9:26am UTC](https://community.asterisk.org/t/vosk-server-docker-implementation-with-asterisk/96365/4 "2023-04-01T09:26:48Z")

</div>

I’m really only quoting what people like Joshua have said in the past.

---

<div class="post-metadata">

**Author:** ![jcolp](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/jcolp/32/8848_2.png) [@jcolp](https://community.asterisk.org/u/jcolp)\
**Post date:** [April 1, 2023, 9:54am UTC](https://community.asterisk.org/t/vosk-server-docker-implementation-with-asterisk/96365/5 "2023-04-01T09:54:21Z")

</div>

Asterisk will run under Docker, but the project doesn’t support the entire Docker side and anything else involved because it can get complex - particularly with networking.

People think “I can just run a Docker container and it just works” when in reality it’s more complicated than that due to SIP embedding IP address information, and the network implementation they may have used without realizing it. Because the problem is “with Asterisk” they come to us for help with that side as well.

“I can just start multiple containers and they’ll magically work!” when in reality yet again it’s far more complex than that.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/asterisk/original/2X/4/475d0c889911cfb84ac4881ad6df8b523e3f9105.png) [@system](https://community.asterisk.org/u/system)\
**Post date:** [May 1, 2023, 9:54am UTC](https://community.asterisk.org/t/vosk-server-docker-implementation-with-asterisk/96365/6 "2023-05-01T09:54:36Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
