Skip to content

v1.0.0#177

Merged
ayutaz merged 14 commits intomainfrom
develop
Sep 4, 2025
Merged

v1.0.0#177
ayutaz merged 14 commits intomainfrom
develop

Conversation

@ayutaz
Copy link
Copy Markdown
Contributor

@ayutaz ayutaz commented Sep 2, 2025

  • uPiperを使ってチャットのレスポンス時に音声合成のボイスの自動生成

確認事項

  • CIのすべてのビルドが通っている
  • チャット機能時にレスポンスの際に音声合成でLLMからの返信の音声が聞こえる

@ayutaz ayutaz requested a review from Copilot September 2, 2025 10:02
@ayutaz ayutaz self-assigned this Sep 2, 2025
Comment on lines +260 to +291
needs: [ build-windows, build-mac, check-branch ]
if: ${{ github.event_name == 'workflow_dispatch' || (github.event_name != 'pull_request' && (github.event_name == 'schedule' || startsWith(github.ref, 'refs/heads/main') || startsWith(github.ref, 'refs/tags/'))) }}
runs-on: ubuntu-latest

concurrency:
group: deploy-itchio-${{ github.ref }}-${{ matrix.platform }}
cancel-in-progress: true

strategy:
fail-fast: false
matrix:
platform: [ windows, mac ]

steps:
- name: Download build artifact
uses: actions/download-artifact@v4
with:
name: ${{ matrix.platform == 'windows' && format('Build-StandaloneWindows64-v{0}', needs.check-branch.outputs.current_version) || format('Build-StandaloneOSX-v{0}', needs.check-branch.outputs.current_version) }}
path: .

- name: Set package path
id: pkg
run: echo "pkg=." >> $GITHUB_OUTPUT

- name: Push to itch.io
uses: yeslayla/butler-publish-itchio-action@v1.0.3
env:
BUTLER_CREDENTIALS: ${{ secrets.ITCHIO_API_KEY }}
ITCH_USER: midralab
ITCH_GAME: uDesktopMascot
CHANNEL: ${{ matrix.platform == 'windows' && 'windows-x64' || 'osx-universal' }}
PACKAGE: ${{ steps.pkg.outputs.pkg }}

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {}

Copilot Autofix

AI 7 months ago

To address this problem, add an explicit permissions block to the workflow YAML—either at the top level (root) to apply to all jobs, or at individual job levels if needing different scopes. Since this workflow mainly downloads/upload artifacts and interacts with Git LFS but does not push to the repository or do writes to issues or pull requests, the minimal safest setting is likely contents: read. If you add this block at the root of the workflow—after the name and before on or jobs—it will apply to all jobs, meeting the principle of least privilege and satisfying the CodeQL recommendation.

Changes:

  • Insert at the beginning of .github/workflows/build.yml (between the name and on fields) the line(s):
    permissions:
      contents: read
  • No other code, imports, or structural changes are required.

Suggested changeset 1
.github/workflows/build.yml

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -1,4 +1,6 @@
 name: Run build
+permissions:
+  contents: read
 
 on:
   workflow_dispatch:
EOF
@@ -1,4 +1,6 @@
name: Run build
permissions:
contents: read

on:
workflow_dispatch:
Copilot is powered by AI and may make mistakes. Always verify output.
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the application to version 1.0.0 and adds Text-to-Speech (TTS) functionality using the uPiper library. The major change integrates Japanese speech synthesis capabilities into the AI chat dialog system.

  • Updated version numbers across configuration files to 1.0.0
  • Integrated uPiper TTS library with OpenJTalk phonemizer for Japanese speech synthesis
  • Added comprehensive TTS audio generation and playback functionality to the chat dialog

Reviewed Changes

Copilot reviewed 48 out of 57 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
setup.iss Updated version from 0.3.0 to 1.0.0
ProjectSettings/ProjectSettings.asset Updated bundle version from 0.4.0 to 1.0.0
Packages/manifest.json & packages-lock.json Added uPiper TTS package dependency
Assets/uDesktopMascot/Scripts/Dialog/ChatDialog.cs Implemented TTS functionality with OpenJTalk phonemizer
Assets/uDesktopMascot/Resources/UI/Dialog/AIChatDialog.prefab Added AudioSource component for TTS playback
Assets/StreamingAssets/uPiper/ Added OpenJTalk dictionary files and phonemizer resources
Assets/uPiper/ Added uPiper plugin metadata files

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@ayutaz ayutaz requested a review from eiei114 September 4, 2025 01:46
@ayutaz ayutaz merged commit 6888eb6 into main Sep 4, 2025
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants