Skip to content

Commit

Permalink
change pt voice
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Jan 15, 2025
1 parent 0d749d6 commit 8ca7545
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 44 deletions.
38 changes: 0 additions & 38 deletions .github/workflows/build_img_ca.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,41 +133,3 @@ jobs:
overwrite: true
prerelease: false
verbose: true



update-ca-gui-workflow:
runs-on: ubuntu-latest
needs: [ upload-image, get-date-release-name, modify-rpi-image ]
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Update base-image-url in build_img_ca_gui.yml
run: |
sed -i '/^[^#]*base-image-url:/ {/sed/! s|base-image-url: .*|base-image-url: https://github.com/TigreGotico/raspOVOS/releases/download/${{ needs.get-date-release-name.outputs.release_name }}/${{ needs.modify-rpi-image.outputs.image-path }}|}' .github/workflows/build_img_ca_gui.yml
- name: Check for changes
id: check-changes
run: |
if git diff --exit-code .github/workflows/build_img_ca_gui.yml; then
echo "base image download url didnt change"
echo "no_changes=true" >> $GITHUB_ENV
else
echo "base image download url updated in build_img_ca_gui.yml"
echo "no_changes=false" >> $GITHUB_ENV
fi
- name: Create Pull Request
if: env.no_changes == 'false'
uses: peter-evans/create-pull-request@v5
with:
author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
committer: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
token: ${{ secrets.PA_TOKEN }}
branch: "update-base-image-url-ca-gui"
commit-message: "Update base-image-url in build_img_ca_gui.yml"
title: "Update base-image-url-ca-gui"
body: |
This PR updates the base-image-url in `build_img_ca_gui.yml` to reflect the latest release.
labels: automated-update
2 changes: 1 addition & 1 deletion .github/workflows/build_img_pt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
CONSTRAINTS: "https://github.com/OpenVoiceOS/ovos-releases/raw/refs/heads/main/constraints-alpha.txt"
MYCROFT_CONFIG_FILES: "mycroft.conf,mycroft_pt.conf"
with:
base-image-url: https://github.com/TigreGotico/raspOVOS/releases/download/raspOVOS-bookworm-arm64-lite-2024-12-19/raspOVOS-bookworm-arm64-lite.img.xz
base-image-url: https://github.com/OpenVoiceOS/raspOVOS/releases/download/raspOVOS-bookworm-arm64-lite-2025-01-15/raspOVOS-bookworm-arm64-lite.img.xz
image-path: raspOVOS-portuguese-bookworm-arm64-lite.img
compress-with-xz: true
shrink: true
Expand Down
3 changes: 1 addition & 2 deletions build_raspOVOS_pt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@ python /mounted-github-repo/packages/download_citrinet_pt.py
mkdir -p /home/ovos/.cache/huggingface/hub/
mv /root/.cache/huggingface/hub/models--neongeckocom--stt_pt_citrinet_512_gamma_0_25/ /home/ovos/.cache/huggingface/hub/models--neongeckocom--stt_pt_citrinet_512_gamma_0_25/


echo "Installing Piper TTS..."
uv pip install --no-progress ovos-tts-plugin-piper -c $CONSTRAINTS
uv pip install --no-progress ovos-tts-plugin-piper ovos-tts-plugin-edge-tts -c $CONSTRAINTS

echo "Downloading portuguese vosk model..."
# Download and extract VOSK model
Expand Down
6 changes: 3 additions & 3 deletions mycroft_pt.conf
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@
}
},
"tts": {
"module": "ovos-tts-plugin-piper",
"ovos-tts-plugin-piper": {
"voice": "tugão-medium"
"module": "ovos-tts-plugin-edge-tts",
"ovos-tts-plugin-edge-tts": {
"voice": "pt-PT-DuarteNeural"
}
},
"location": {
Expand Down

0 comments on commit 8ca7545

Please sign in to comment.