Jigasi release #1
26
jigasi.sh
26
jigasi.sh
|
@ -30,7 +30,7 @@ apt -y install google-cloud-sdk google-cloud-sdk-app-engine-java
|
||||||
|
|
||||||
echo "Please select one of the current options:
|
echo "Please select one of the current options:
|
||||||
[1] I want to configure a new project, service account, billing and JSON credentials.
|
[1] I want to configure a new project, service account, billing and JSON credentials.
|
||||||
[2] I already have one project configured and already have a JSON key files from Google"
|
[2] I already have one project configured and already have a JSON key file from Google"
|
||||||
while [[ $SETUP_TYPE != 1 && $SETUP_TYPE != 2 ]]
|
while [[ $SETUP_TYPE != 1 && $SETUP_TYPE != 2 ]]
|
||||||
do
|
do
|
||||||
read -p "What option suits your setup?: (1 or 2)"$'\n' -r SETUP_TYPE
|
read -p "What option suits your setup?: (1 or 2)"$'\n' -r SETUP_TYPE
|
||||||
|
@ -58,12 +58,12 @@ PROJECT_GC_ID=$(gcloud projects list | grep $GC_PROJECT_NAME | awk '{print$3}')
|
||||||
while [ ! -z $PROJECT_GC_ID ]
|
while [ ! -z $PROJECT_GC_ID ]
|
||||||
do
|
do
|
||||||
read -p "Enter the project name you just created for Jigasi Speech-to-Text"$'\n' -r GC_PROJECT_NAME
|
read -p "Enter the project name you just created for Jigasi Speech-to-Text"$'\n' -r GC_PROJECT_NAME
|
||||||
if [ -z PROJECT_GC_ID ]
|
if [ -z PROJECT_GC_ID ]; then
|
||||||
echo "Please check your project name,
|
echo "Please check your project name,
|
||||||
There is no project listed with the provided name: $GC_PROJECT_NAME"
|
There is no project listed with the provided name: $GC_PROJECT_NAME"
|
||||||
PROJECT_GC_ID=$(gcloud projects list | grep $GC_PROJECT_NAME | awk '{print$3}')
|
PROJECT_GC_ID=$(gcloud projects list | grep $GC_PROJECT_NAME | awk '{print$3}')
|
||||||
fi
|
fi
|
||||||
|
done
|
||||||
echo "Your $GC_PROJECT_NAME ID's project is: $PROJECT_GC_ID"
|
echo "Your $GC_PROJECT_NAME ID's project is: $PROJECT_GC_ID"
|
||||||
|
|
||||||
# Enable Speech2Text
|
# Enable Speech2Text
|
||||||
|
@ -128,7 +128,9 @@ if [[ $? -eq 1 ]]; then
|
||||||
CHECK_JSON_KEY="$(cat $GC_API_JSON | python -m json.tool 2>/dev/null)"
|
CHECK_JSON_KEY="$(cat $GC_API_JSON | python -m json.tool 2>/dev/null)"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
echo "Great, seems now your JSON key syntax is fine."
|
echo "
|
||||||
|
Great, seems your JSON key syntax is fine.
|
||||||
|
"
|
||||||
|
|
||||||
export GOOGLE_APPLICATION_CREDENTIALS=$GC_API_JSON
|
export GOOGLE_APPLICATION_CREDENTIALS=$GC_API_JSON
|
||||||
|
|
||||||
|
@ -179,13 +181,19 @@ prosodyctl register transcript auth.$DOMAIN jigasi
|
||||||
|
|
||||||
systemctl restart prosody ji*
|
systemctl restart prosody ji*
|
||||||
|
|
||||||
echo "To test, you need to enable subtitles beforehand then invite \
|
echo "
|
||||||
\"jitsi_meet_transcribe\" to the meeting (no quotes)."
|
To test, you need to enable subtitles beforehand then invite \
|
||||||
|
\"jitsi_meet_transcribe\" to the meeting (no quotes).
|
||||||
|
"
|
||||||
|
|
||||||
echo "Full transcript files are available at:
|
echo "
|
||||||
--> /var/lib/jigasi/transcripts/"
|
Full transcript files are available at:
|
||||||
|
--> /var/lib/jigasi/transcripts/
|
||||||
|
"
|
||||||
|
|
||||||
echo "Happy transcripting..."
|
echo "
|
||||||
|
Happy transcripting!
|
||||||
|
"
|
||||||
|
|
||||||
#APP.conference._room.dial("jitsi_meet_transcribe");
|
#APP.conference._room.dial("jitsi_meet_transcribe");
|
||||||
|
|
||||||
|
|
|
@ -531,9 +531,9 @@ else
|
||||||
echo "No webserver found please report."
|
echo "No webserver found please report."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
elif [ $ENABLE_TRANSCRIPT = yes ]; then
|
if [ $ENABLE_TRANSCRIPT = yes ]; then
|
||||||
echo "Jigasi Transcription will be enabled."
|
echo "Jigasi Transcription will be enabled."
|
||||||
bash ./jigasi.sh
|
bash $PWD/jigasi.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "
|
echo "
|
||||||
|
|
Loading…
Reference in New Issue