This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
голосовые_сервисы_помогут_голосовой_почте [2026/07/01 15:30] val [Или Whisper] |
голосовые_сервисы_помогут_голосовой_почте [2026/07/02 15:14] (current) val [Шаг 6. Добавляем голосовую почту в диалплан] |
||
|---|---|---|---|
| Line 125: | Line 125: | ||
| # cat /usr/local/bin/mailsend.sh | # cat /usr/local/bin/mailsend.sh | ||
| </code><code> | </code><code> | ||
| - | #!/bin/sh | + | #!/bin/bash |
| DIR=/usr/share/asterisk/sounds/recordings/ | DIR=/usr/share/asterisk/sounds/recordings/ | ||
| Line 158: | Line 158: | ||
| source ~/venv1/bin/activate | source ~/venv1/bin/activate | ||
| cd $DIR | cd $DIR | ||
| - | ~/venv1/bin/whisper ${FILENAME}.ogg --model base --device cpu --language ru >/dev/null 2>&1 | + | ~/venv1/bin/whisper ${RECFILENAME}.ogg --model base --device cpu --language ru >/dev/null 2>&1 |
| cd | cd | ||
| Line 170: | Line 170: | ||
| # chmod +x /usr/local/bin/mailsend.sh | # chmod +x /usr/local/bin/mailsend.sh | ||
| - | # su - asterisk | + | # sudo -u asterisk bash |
| $ wget https://val.bmstu.ru/unix/Media/speech.alaw -P /usr/share/asterisk/sounds/recordings/ | $ wget https://val.bmstu.ru/unix/Media/speech.alaw -P /usr/share/asterisk/sounds/recordings/ | ||