Fangjun Kuang
Committed by GitHub

Add Flutter text to speech demo (#1087)

正在显示 99 个修改的文件 包含 4230 行增加137 行删除

要显示太多修改。

为保证性能只显示 99 of 99+ 个文件。

  1 +name: flutter-android
  2 +
  3 +on:
  4 + push:
  5 + branches:
  6 + - flutter
  7 + tags:
  8 + - 'v[0-9]+.[0-9]+.[0-9]+*'
  9 +
  10 + workflow_dispatch:
  11 +
  12 +concurrency:
  13 + group: flutter-android-${{ github.ref }}
  14 + cancel-in-progress: true
  15 +
  16 +jobs:
  17 + tts:
  18 + name: tts ${{ matrix.index }}/${{ matrix.total }}
  19 + runs-on: ${{ matrix.os }}
  20 + strategy:
  21 + fail-fast: false
  22 + matrix:
  23 + os: [ubuntu-latest]
  24 + total: ["15"]
  25 + index: ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14"]
  26 +
  27 + steps:
  28 + - uses: actions/checkout@v4
  29 + with:
  30 + fetch-depth: 0
  31 +
  32 + - name: Display NDK HOME
  33 + shell: bash
  34 + run: |
  35 + echo "ANDROID_NDK_LATEST_HOME: ${ANDROID_NDK_LATEST_HOME}"
  36 + ls -lh ${ANDROID_NDK_LATEST_HOME}
  37 +
  38 + - name: Setup build tool version variable
  39 + shell: bash
  40 + run: |
  41 + echo "---"
  42 + ls -lh /usr/local/lib/android/
  43 + echo "---"
  44 +
  45 + ls -lh /usr/local/lib/android/sdk
  46 + echo "---"
  47 +
  48 + ls -lh /usr/local/lib/android/sdk/build-tools
  49 + echo "---"
  50 +
  51 + BUILD_TOOL_VERSION=$(ls /usr/local/lib/android/sdk/build-tools/ | tail -n 1)
  52 + echo "BUILD_TOOL_VERSION=$BUILD_TOOL_VERSION" >> $GITHUB_ENV
  53 + echo "Last build tool version is: $BUILD_TOOL_VERSION"
  54 +
  55 + - name: Install Python dependencies
  56 + shell: bash
  57 + run: |
  58 + python3 -m pip install --upgrade pip jinja2 iso639-lang
  59 +
  60 + - name: Install deps
  61 + shell: bash
  62 + run: |
  63 + sudo apt-get update -y
  64 + sudo apt-get install -y build-essential jq git cmake
  65 + sudo apt-get install -y curl
  66 +
  67 + - name: Setup Flutter SDK
  68 + uses: flutter-actions/setup-flutter@v3
  69 + with:
  70 + channel: stable
  71 + version: latest
  72 +
  73 + - name: Install ninja
  74 + shell: bash
  75 + run: |
  76 + sudo apt-get install -y ninja-build
  77 +
  78 + - name: Display ninja version
  79 + shell: bash
  80 + run: |
  81 + ninja --version
  82 + ninja --help || true
  83 + which ninja
  84 +
  85 + - name: Display PWD
  86 + shell: bash
  87 + run: |
  88 + echo "pwd: $PWD"
  89 + ls -lh
  90 +
  91 + - name: Display machine info
  92 + shell: bash
  93 + run: |
  94 + uname -a
  95 +
  96 + - name: Display flutter info
  97 + shell: bash
  98 + run: |
  99 + which flutter
  100 + which dart
  101 +
  102 + flutter --version
  103 +
  104 + git config --global --add safe.directory /__t/flutter-Linux-*/flutter || true
  105 +
  106 + flutter --version
  107 +
  108 + dart --version
  109 + flutter doctor
  110 +
  111 + - name: Install libgtk-3-dev
  112 + shell: bash
  113 + run: |
  114 + sudo apt install -y libgtk-3-dev tree clang pkg-config
  115 +
  116 + - name: Display flutter info (2)
  117 + shell: bash
  118 + run: |
  119 + which flutter
  120 + which dart
  121 +
  122 + flutter --version
  123 + dart --version
  124 + flutter doctor
  125 +
  126 + cd ..
  127 +
  128 + - name: Build flutter
  129 + shell: bash
  130 + run: |
  131 + cd scripts/flutter
  132 +
  133 + total=${{ matrix.total }}
  134 + index=${{ matrix.index }}
  135 +
  136 + ./generate-tts.py --total $total --index $index
  137 +
  138 + chmod +x *.sh
  139 + ./build-android-tts.sh
  140 +
  141 + cd ../../
  142 +
  143 + ls -lh *.apk
  144 +
  145 + - name: Display generated files
  146 + shell: bash
  147 + run: |
  148 + ls -lh *.apk
  149 +
  150 + mkdir apks
  151 +
  152 + mv -v *.apk ./apks
  153 +
  154 + # https://github.com/marketplace/actions/sign-android-release
  155 + - uses: r0adkll/sign-android-release@v1
  156 + name: Sign app APK
  157 + with:
  158 + releaseDirectory: ./apks
  159 + signingKeyBase64: ${{ secrets.ANDROID_SIGNING_KEY }}
  160 + alias: ${{ secrets.ANDROID_SIGNING_KEY_ALIAS }}
  161 + keyStorePassword: ${{ secrets.ANDROID_SIGNING_KEY_STORE_PASSWORD }}
  162 + env:
  163 + BUILD_TOOLS_VERSION: ${{ env.BUILD_TOOL_VERSION }}
  164 +
  165 + - name: Display APK after signing
  166 + shell: bash
  167 + run: |
  168 + ls -lh ./apks/
  169 + du -h -d1 .
  170 +
  171 + - name: Rename APK after signing
  172 + shell: bash
  173 + run: |
  174 + cd apks
  175 + rm -fv signingKey.jks
  176 + rm -fv *.apk.idsig
  177 + rm -fv *-aligned.apk
  178 +
  179 + all_apks=$(ls -1 *-signed.apk)
  180 + echo "----"
  181 + echo $all_apks
  182 + echo "----"
  183 + for apk in ${all_apks[@]}; do
  184 + n=$(echo $apk | sed -e s/-signed//)
  185 + mv -v $apk $n
  186 + done
  187 +
  188 + cd ..
  189 +
  190 + ls -lh ./apks/
  191 + du -h -d1 .
  192 +
  193 + - name: Display APK after rename
  194 + shell: bash
  195 + run: |
  196 + ls -lh ./apks/
  197 + du -h -d1 .
  198 +
  199 + - name: Publish to huggingface
  200 + if: (github.repository_owner == 'csukuangfj' || github.repository_owner == 'k2-fsa' || github.repository_owner == 'csu-fangjun') && ((github.event_name == 'push' || github.event_name == 'workflow_dispatch') || contains(github.ref, 'refs/tags/'))
  201 + env:
  202 + HF_TOKEN: ${{ secrets.HF_TOKEN }}
  203 + uses: nick-fields/retry@v3
  204 + with:
  205 + max_attempts: 20
  206 + timeout_seconds: 200
  207 + shell: bash
  208 + command: |
  209 + git config --global user.email "csukuangfj@gmail.com"
  210 + git config --global user.name "Fangjun Kuang"
  211 +
  212 + rm -rf huggingface
  213 + export GIT_LFS_SKIP_SMUDGE=1
  214 + export GIT_CLONE_PROTECTION_ACTIVE=false
  215 +
  216 + SHERPA_ONNX_VERSION=$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2)
  217 + echo "SHERPA_ONNX_VERSION $SHERPA_ONNX_VERSION"
  218 +
  219 + git clone https://huggingface.co/csukuangfj/sherpa-onnx-flutter huggingface
  220 + cd huggingface
  221 + git fetch
  222 + git pull
  223 + git merge -m "merge remote" --ff origin main
  224 +
  225 + dst=flutter/tts/android/$SHERPA_ONNX_VERSION
  226 + mkdir -p $dst
  227 +
  228 + cp -v ../apks/*.apk $dst
  229 +
  230 + git status
  231 + git lfs track "*.apk"
  232 + git add .
  233 + git commit -m "add more files"
  234 + git push https://csukuangfj:$HF_TOKEN@huggingface.co/csukuangfj/sherpa-onnx-flutter main
@@ -6,23 +6,6 @@ on: @@ -6,23 +6,6 @@ on:
6 - flutter 6 - flutter
7 tags: 7 tags:
8 - 'v[0-9]+.[0-9]+.[0-9]+*' 8 - 'v[0-9]+.[0-9]+.[0-9]+*'
9 - paths:  
10 - - '.github/workflows/flutter-linux.yaml'  
11 - - 'CMakeLists.txt'  
12 - - 'cmake/**'  
13 - - 'sherpa-onnx/csrc/*'  
14 - - 'sherpa-onnx/c-api/*'  
15 - - 'sherpa-onnx/flutter/**'  
16 - pull_request:  
17 - branches:  
18 - - master  
19 - paths:  
20 - - '.github/workflows/flutter-linux.yaml'  
21 - - 'CMakeLists.txt'  
22 - - 'cmake/**'  
23 - - 'sherpa-onnx/csrc/*'  
24 - - 'sherpa-onnx/c-api/*'  
25 - - 'sherpa-onnx/flutter/**'  
26 9
27 workflow_dispatch: 10 workflow_dispatch:
28 11
@@ -30,19 +13,26 @@ concurrency: @@ -30,19 +13,26 @@ concurrency:
30 group: flutter-linux-${{ github.ref }} 13 group: flutter-linux-${{ github.ref }}
31 cancel-in-progress: true 14 cancel-in-progress: true
32 15
  16 +# See https://github.com/actions/checkout/issues/1590#issuecomment-2207052044
  17 +# and
  18 +# https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
  19 +env:
  20 + ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
  21 +
33 jobs: 22 jobs:
34 - flutter_linux:  
35 - if: false  
36 - name: linux 23 + tts:
  24 + name: tts ${{ matrix.index }}/${{ matrix.total }}
37 runs-on: ${{ matrix.os }} 25 runs-on: ${{ matrix.os }}
38 container: ubuntu:18.04 26 container: ubuntu:18.04
39 strategy: 27 strategy:
40 fail-fast: false 28 fail-fast: false
41 matrix: 29 matrix:
42 os: [ubuntu-latest] 30 os: [ubuntu-latest]
  31 + total: ["20"]
  32 + index: ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19"]
43 33
44 steps: 34 steps:
45 - - uses: actions/checkout@v2 35 + - uses: actions/checkout@v3
46 with: 36 with:
47 fetch-depth: 0 37 fetch-depth: 0
48 38
@@ -50,8 +40,98 @@ jobs: @@ -50,8 +40,98 @@ jobs:
50 shell: bash 40 shell: bash
51 run: | 41 run: |
52 apt-get update -y 42 apt-get update -y
53 - apt-get install -y build-essential jq git cmake 43 + apt-get install -y bc curl git
  44 +
  45 + - name: Show files
  46 + shell: bash
  47 + run: |
  48 + git config --global --add safe.directory /__w/sherpa-onnx/sherpa-onnx
  49 +
  50 + ls -lha
  51 +
  52 + git init
  53 + git add .
  54 + git config user.name "foo"
  55 + git config user.email "bar@g.com"
  56 + git commit -m "test"
  57 +
  58 + - name: Generate tts script
  59 + uses: addnab/docker-run-action@v3
  60 + with:
  61 + image: quay.io/pypa/manylinux2014_x86_64
  62 + options: |
  63 + --volume ${{ github.workspace }}/:/home/runner/work/sherpa-onnx/sherpa-onnx
  64 + shell: bash
  65 + run: |
  66 + uname -a
  67 + gcc --version
  68 + cmake --version
  69 + cat /etc/*release
  70 + id
  71 + pwd
  72 +
  73 + find /opt -name "python*"
  74 + export PATH=/opt/_internal/cpython-3.8.19/bin:$PATH
  75 + python3 --version
  76 + python3 -m pip install --upgrade pip jinja2 iso639-lang
  77 +
  78 + total=${{ matrix.total }}
  79 + index=${{ matrix.index }}
  80 +
  81 + cd /home/runner/work/sherpa-onnx/sherpa-onnx
  82 + cd scripts/flutter
  83 + ls -lh
  84 + echo "---"
  85 + python3 ./generate-tts.py --total $total --index $index
  86 + chmod +x *.sh
  87 + ls -lh
  88 +
  89 + # Ubuntu 18.04 uses cmake 3.10 by default, but we need cmake >= 3.11
  90 + - name: Install cmake
  91 + shell: bash
  92 + run: |
  93 + # see https://askubuntu.com/questions/355565/how-do-i-install-the-latest-version-of-cmake-from-the-command-line
  94 + version=3.28
  95 + build=1
  96 + ## don't modify from here
  97 + limit=3.20
  98 + result=$(echo "$version >= $limit" | bc -l)
  99 + os=$([ "$result" == 1 ] && echo "linux" || echo "Linux")
  100 + mkdir ~/temp
  101 + cd ~/temp
  102 + curl -SL -O https://cmake.org/files/v$version/cmake-$version.$build-$os-x86_64.sh
  103 + mkdir /opt/cmake
  104 + sh cmake-$version.$build-$os-x86_64.sh --skip-license --prefix=/opt/cmake
  105 + ln -s /opt/cmake/bin/cmake /usr/local/bin/cmake
  106 +
  107 + echo "/opt/cmake/bin" >> $GITHUB_PATH
  108 +
  109 + - name: Display cmake version
  110 + shell: bash
  111 + run: |
  112 + cmake --version
  113 + which cmake
  114 +
  115 + - name: Install deps
  116 + shell: bash
  117 + run: |
  118 + apt-get update -y
  119 + apt-get install -y build-essential jq git python3-pip
54 apt-get install -y curl 120 apt-get install -y curl
  121 + apt-get install -y libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libunwind-dev
  122 +
  123 + - name: Show files
  124 + shell: bash
  125 + run: |
  126 + echo "pwd: $PWD"
  127 + ls -lh
  128 + echo "---"
  129 + ls -lh scripts/flutter
  130 +
  131 + - name: Install Python dependencies
  132 + shell: bash
  133 + run: |
  134 + python3 -m pip install --upgrade pip jinja2 iso639-lang dataclasses
55 135
56 - name: Setup Flutter SDK 136 - name: Setup Flutter SDK
57 uses: flutter-actions/setup-flutter@v3 137 uses: flutter-actions/setup-flutter@v3
@@ -112,112 +192,88 @@ jobs: @@ -112,112 +192,88 @@ jobs:
112 dart --version 192 dart --version
113 flutter doctor 193 flutter doctor
114 194
115 - - name: Build sherpa-onnx  
116 - uses: addnab/docker-run-action@v3  
117 - with:  
118 - image: quay.io/pypa/manylinux2014_x86_64  
119 - options: |  
120 - --volume ${{ github.workspace }}/:/home/runner/work/sherpa-onnx/sherpa-onnx  
121 - shell: bash  
122 - run: |  
123 - uname -a  
124 - gcc --version  
125 - cmake --version  
126 - cat /etc/*release  
127 - id  
128 - pwd  
129 -  
130 - cd /home/runner/work/sherpa-onnx/sherpa-onnx  
131 -  
132 - mkdir build  
133 - cd build  
134 -  
135 - cmake \  
136 - -D BUILD_SHARED_LIBS=ON \  
137 - -DSHERPA_ONNX_ENABLE_PORTAUDIO=OFF \  
138 - -DSHERPA_ONNX_ENABLE_WEBSOCKET=OFF \  
139 - -DBUILD_ESPEAK_NG_EXE=OFF \  
140 - -DSHERPA_ONNX_ENABLE_BINARY=OFF \  
141 - -DCMAKE_INSTALL_PREFIX=./install \  
142 - ..  
143 -  
144 - make -j2  
145 - make install  
146 -  
147 - - name: Copy libs  
148 - shell: bash  
149 - run: |  
150 - cp -v build/install/lib/lib* ./sherpa-onnx/flutter/linux/  
151 -  
152 - echo "--------------------"  
153 -  
154 - ls -lh ./sherpa-onnx/flutter/linux/  
155 -  
156 - - name: Download model files  
157 - shell: bash  
158 - run: |  
159 - cd sherpa-onnx/flutter  
160 - cd example/assets  
161 -  
162 - curl -SL -O https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models/silero_vad.onnx  
163 - curl -SL -O https://github.com/k2-fsa/sherpa-onnx/releases/download/asr-models/sherpa-onnx-streaming-zipformer-bilingual-zh-en-2023-02-20.tar.bz2  
164 - tar xvf sherpa-onnx-streaming-zipformer-bilingual-zh-en-2023-02-20.tar.bz2  
165 - rm sherpa-onnx-streaming-zipformer-bilingual-zh-en-2023-02-20.tar.bz2  
166 - cd sherpa-onnx-streaming-zipformer-bilingual-zh-en-2023-02-20  
167 - rm encoder-epoch-99-avg-1.onnx  
168 - rm decoder-epoch-99-avg-1.int8.onnx  
169 - rm joiner-epoch-99-avg-1.onnx  
170 - rm README.md  
171 - rm bpe.model  
172 - rm bpe.vocab  
173 - rm -rf test_wavs  
174 - ls -lh  
175 cd .. 195 cd ..
176 196
177 - name: Build flutter 197 - name: Build flutter
178 shell: bash 198 shell: bash
179 run: | 199 run: |
  200 + cd scripts/flutter
180 201
181 - d=$PWD  
182 -  
183 - pushd sherpa-onnx/flutter  
184 - dart pub get  
185 -  
186 - cd example  
187 - flutter build linux  
188 -  
189 - ls -lh build/linux/x64/release/bundle/sherpa_onnx  
190 - file build/linux/x64/release/bundle/sherpa_onnx  
191 -  
192 - tree build/linux/x64/release/bundle/  
193 - cd build/linux/x64/release/ 202 + total=${{ matrix.total }}
  203 + index=${{ matrix.index }}
194 204
195 - dst=flutter_sherpa_onnx_linux_x64  
196 - mv bundle $dst 205 + ./generate-tts.py --total $total --index $index
197 206
198 - pushd $dst/lib 207 + chmod +x *.sh
  208 + ./build-linux-tts.sh
  209 + cd ../../
  210 + ls -lh *.tar.bz2
199 211
200 - ls -lh  
201 - mv -v libonnxruntime.so libonnxruntime.so.1.17.1  
202 - mv -v libpiper_phonemize.so libpiper_phonemize.so.1  
203 - popd 212 + - name: Display generated files
  213 + shell: bash
  214 + run: |
  215 + ls -lh *.tar.bz2
204 216
205 - tar cjfv $dst.tar.bz2 $dst  
206 - ls -lh  
207 - mv $dst.tar.bz2 $d  
208 - popd 217 + - uses: actions/upload-artifact@v3
  218 + with:
  219 + name: ${{ matrix.os }}-${{ matrix.total }}-${{ matrix.index }}
  220 + path: ./*.tar.bz2
209 221
210 - ls -lh $dst.tar.bz2 222 + tts_upload:
  223 + needs: [tts]
  224 + name: tts upload ${{ matrix.index }}/${{ matrix.total }}
  225 + runs-on: ${{ matrix.os }}
  226 + strategy:
  227 + fail-fast: false
  228 + matrix:
  229 + os: [ubuntu-latest]
  230 + total: ["20"]
  231 + index: ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19"]
  232 + # total: ["1"]
  233 + # index: ["0"]
211 234
212 - - uses: actions/upload-artifact@v2 235 + steps:
  236 + - uses: actions/checkout@v4
213 with: 237 with:
214 - name: flutter-sherpa-onnx-linux-x64  
215 - path: ./*.tar.bz2 238 + fetch-depth: 0
216 239
217 - # - name: Release android libs  
218 - # if: (github.repository_owner == 'csukuangfj' || github.repository_owner == 'k2-fsa') && github.event_name == 'push' && contains(github.ref, 'refs/tags/')  
219 - # uses: svenstaro/upload-release-action@v2  
220 - # with:  
221 - # file_glob: true  
222 - # overwrite: true  
223 - # file: flutter*.tar.bz2 240 + - name: Retrieve artifact from ubuntu-latest
  241 + uses: actions/download-artifact@v3
  242 + with:
  243 + name: ${{ matrix.os }}-${{ matrix.total }}-${{ matrix.index }}
  244 + path: /tmp/files/
  245 +
  246 + - name: Publish to huggingface
  247 + if: (github.repository_owner == 'csukuangfj' || github.repository_owner == 'k2-fsa' || github.repository_owner == 'csu-fangjun') && ((github.event_name == 'push' || github.event_name == 'workflow_dispatch') || contains(github.ref, 'refs/tags/'))
  248 + env:
  249 + HF_TOKEN: ${{ secrets.HF_TOKEN }}
  250 + uses: nick-fields/retry@v3
  251 + with:
  252 + max_attempts: 20
  253 + timeout_seconds: 200
  254 + shell: bash
  255 + command: |
  256 + git config --global user.email "csukuangfj@gmail.com"
  257 + git config --global user.name "Fangjun Kuang"
  258 +
  259 + rm -rf huggingface
  260 + export GIT_LFS_SKIP_SMUDGE=1
  261 + export GIT_CLONE_PROTECTION_ACTIVE=false
  262 +
  263 + SHERPA_ONNX_VERSION=$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2)
  264 + echo "SHERPA_ONNX_VERSION $SHERPA_ONNX_VERSION"
  265 +
  266 + git clone https://huggingface.co/csukuangfj/sherpa-onnx-flutter huggingface
  267 + cd huggingface
  268 + git fetch
  269 + git pull
  270 + git merge -m "merge remote" --ff origin main
  271 + dst=flutter/tts/linux/$SHERPA_ONNX_VERSION
  272 + mkdir -p $dst
  273 + cp -v /tmp/files/*.tar.bz2 $dst
  274 +
  275 + git status
  276 + git lfs track "*.bz2"
  277 + git add .
  278 + git commit -m "add more files"
  279 + git push https://csukuangfj:$HF_TOKEN@huggingface.co/csukuangfj/sherpa-onnx-flutter main
@@ -14,8 +14,8 @@ concurrency: @@ -14,8 +14,8 @@ concurrency:
14 cancel-in-progress: true 14 cancel-in-progress: true
15 15
16 jobs: 16 jobs:
17 - flutter_macos:  
18 - name: macos ${{ matrix.arch }} ${{ matrix.index }} 17 + asr:
  18 + name: asr ${{ matrix.arch }}/${{ matrix.total }}
19 runs-on: ${{ matrix.os }} 19 runs-on: ${{ matrix.os }}
20 strategy: 20 strategy:
21 fail-fast: false 21 fail-fast: false
@@ -78,13 +78,119 @@ jobs: @@ -78,13 +78,119 @@ jobs:
78 cd ../../ 78 cd ../../
79 ls -lh *.tar.bz2 79 ls -lh *.tar.bz2
80 80
81 - - uses: actions/upload-artifact@v4 81 + - name: Display generated files
  82 + shell: bash
  83 + run: |
  84 + ls -lh *.tar.bz2
  85 +
  86 + - name: Publish to huggingface
  87 + if: (github.repository_owner == 'csukuangfj' || github.repository_owner == 'k2-fsa' || github.repository_owner == 'csu-fangjun') && ((github.event_name == 'push' || github.event_name == 'workflow_dispatch') || contains(github.ref, 'refs/tags/'))
  88 + env:
  89 + HF_TOKEN: ${{ secrets.HF_TOKEN }}
  90 + uses: nick-fields/retry@v3
  91 + with:
  92 + max_attempts: 20
  93 + timeout_seconds: 200
  94 + shell: bash
  95 + command: |
  96 + git config --global user.email "csukuangfj@gmail.com"
  97 + git config --global user.name "Fangjun Kuang"
  98 +
  99 + rm -rf huggingface
  100 + export GIT_LFS_SKIP_SMUDGE=1
  101 + export GIT_CLONE_PROTECTION_ACTIVE=false
  102 +
  103 + SHERPA_ONNX_VERSION=$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2)
  104 + echo "SHERPA_ONNX_VERSION $SHERPA_ONNX_VERSION"
  105 +
  106 + git clone https://huggingface.co/csukuangfj/sherpa-onnx-flutter huggingface
  107 + cd huggingface
  108 + git fetch
  109 + git pull
  110 + git merge -m "merge remote" --ff origin main
  111 +
  112 + dst=flutter/asr/macos/$SHERPA_ONNX_VERSION
  113 + mkdir -p $dst
  114 +
  115 + cp -v ../*.tar.bz2 $dst
  116 +
  117 + git status
  118 + git lfs track "*.bz2"
  119 + git add .
  120 + git commit -m "add more files"
  121 + git push https://csukuangfj:$HF_TOKEN@huggingface.co/csukuangfj/sherpa-onnx-flutter main
  122 +
  123 + tts:
  124 + name: tts ${{ matrix.arch }} ${{ matrix.index }}/${{ matrix.total }}
  125 + runs-on: ${{ matrix.os }}
  126 + strategy:
  127 + fail-fast: false
  128 + matrix:
  129 + os: [macos-latest]
  130 + arch: [x86_64, arm64]
  131 + total: ["10"]
  132 + index: ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
  133 +
  134 + steps:
  135 + - uses: actions/checkout@v4
82 with: 136 with:
83 - name: sherpa-onnx-osx-${{ matrix.arch }}-${{ matrix.index }}  
84 - path: ./*.tar.bz2 137 + fetch-depth: 0
  138 +
  139 + - name: Install Python dependencies
  140 + shell: bash
  141 + run: |
  142 + python3 -m pip install --break-system-packages --upgrade pip jinja2 iso639-lang
  143 +
  144 + - name: Setup Flutter SDK
  145 + uses: flutter-actions/setup-flutter@v3
  146 + with:
  147 + channel: stable
  148 + version: latest
  149 +
  150 + - name: Display PWD
  151 + shell: bash
  152 + run: |
  153 + echo "pwd: $PWD"
  154 + ls -lh
  155 +
  156 + - name: Display machine info
  157 + shell: bash
  158 + run: |
  159 + uname -a
  160 +
  161 + - name: Display flutter info
  162 + shell: bash
  163 + run: |
  164 + which flutter
  165 + which dart
  166 +
  167 + flutter --version
  168 + dart --version
  169 + flutter doctor
  170 +
  171 + - name: Build flutter
  172 + shell: bash
  173 + run: |
  174 + export arch=${{ matrix.arch }}
  175 + cd scripts/flutter
  176 +
  177 + total=${{ matrix.total }}
  178 + index=${{ matrix.index }}
  179 +
  180 + ./generate-tts.py --total $total --index $index
  181 +
  182 + chmod +x *.sh
  183 + ./build-macos-tts.sh
  184 + cd ../../
  185 + ls -lh *.tar.bz2
  186 +
  187 + - name: Display generated files
  188 + shell: bash
  189 + run: |
  190 + ls -lh *.tar.bz2
85 191
86 - name: Publish to huggingface 192 - name: Publish to huggingface
87 - if: (github.repository_owner == 'csukuangfj' || github.repository_owner == 'k2-fsa') && ((github.event_name == 'push' || github.event_name == 'workflow_dispatch') || contains(github.ref, 'refs/tags/')) 193 + if: (github.repository_owner == 'csukuangfj' || github.repository_owner == 'k2-fsa' || github.repository_owner == 'csu-fangjun') && ((github.event_name == 'push' || github.event_name == 'workflow_dispatch') || contains(github.ref, 'refs/tags/'))
88 env: 194 env:
89 HF_TOKEN: ${{ secrets.HF_TOKEN }} 195 HF_TOKEN: ${{ secrets.HF_TOKEN }}
90 uses: nick-fields/retry@v3 196 uses: nick-fields/retry@v3
@@ -100,13 +206,17 @@ jobs: @@ -100,13 +206,17 @@ jobs:
100 export GIT_LFS_SKIP_SMUDGE=1 206 export GIT_LFS_SKIP_SMUDGE=1
101 export GIT_CLONE_PROTECTION_ACTIVE=false 207 export GIT_CLONE_PROTECTION_ACTIVE=false
102 208
  209 + SHERPA_ONNX_VERSION=$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2)
  210 + echo "SHERPA_ONNX_VERSION $SHERPA_ONNX_VERSION"
  211 +
103 git clone https://huggingface.co/csukuangfj/sherpa-onnx-flutter huggingface 212 git clone https://huggingface.co/csukuangfj/sherpa-onnx-flutter huggingface
104 cd huggingface 213 cd huggingface
105 git fetch 214 git fetch
106 git pull 215 git pull
107 git merge -m "merge remote" --ff origin main 216 git merge -m "merge remote" --ff origin main
108 - mkdir -p flutter/asr  
109 - cp -v ../*.tar.bz2 ./flutter/asr 217 + dst=flutter/tts/macos/$SHERPA_ONNX_VERSION
  218 + mkdir -p $dst
  219 + cp -v ../*.tar.bz2 $dst
110 220
111 git status 221 git status
112 git lfs track "*.bz2" 222 git lfs track "*.bz2"
@@ -14,8 +14,8 @@ concurrency: @@ -14,8 +14,8 @@ concurrency:
14 cancel-in-progress: true 14 cancel-in-progress: true
15 15
16 jobs: 16 jobs:
17 - flutter_windows_x64:  
18 - name: windows x64 ${{ matrix.index }} 17 + asr:
  18 + name: asr ${{ matrix.index }}/${{ matrix.total }}
19 runs-on: ${{ matrix.os }} 19 runs-on: ${{ matrix.os }}
20 strategy: 20 strategy:
21 fail-fast: false 21 fail-fast: false
@@ -76,13 +76,106 @@ jobs: @@ -76,13 +76,106 @@ jobs:
76 cd ../../ 76 cd ../../
77 ls -lh *.tar.bz2 77 ls -lh *.tar.bz2
78 78
79 - - uses: actions/upload-artifact@v4 79 + - name: Publish to huggingface
  80 + if: (github.repository_owner == 'csukuangfj' || github.repository_owner == 'k2-fsa' || github.repository_owner == 'csu-fangjun') && ((github.event_name == 'push' || github.event_name == 'workflow_dispatch') || contains(github.ref, 'refs/tags/'))
  81 + env:
  82 + HF_TOKEN: ${{ secrets.HF_TOKEN }}
  83 + uses: nick-fields/retry@v3
80 with: 84 with:
81 - name: sherpa-onnx-win-x64-${{ matrix.index }}  
82 - path: ./*.tar.bz2 85 + max_attempts: 20
  86 + timeout_seconds: 200
  87 + shell: bash
  88 + command: |
  89 + git config --global user.email "csukuangfj@gmail.com"
  90 + git config --global user.name "Fangjun Kuang"
  91 +
  92 + rm -rf huggingface
  93 + export GIT_LFS_SKIP_SMUDGE=1
  94 + export GIT_CLONE_PROTECTION_ACTIVE=false
  95 +
  96 + SHERPA_ONNX_VERSION=$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2)
  97 + echo "SHERPA_ONNX_VERSION $SHERPA_ONNX_VERSION"
  98 +
  99 + git clone https://huggingface.co/csukuangfj/sherpa-onnx-flutter huggingface
  100 + cd huggingface
  101 + git fetch
  102 + git pull
  103 + git merge -m "merge remote" --ff origin main
  104 +
  105 + dst=flutter/asr/windows/$SHERPA_ONNX_VERSION
  106 + mkdir -p $dst
  107 + cp -v ../*.tar.bz2 $dst
  108 +
  109 + git status
  110 + git lfs track "*.bz2"
  111 + git add .
  112 + git commit -m "add more files"
  113 + git push https://csukuangfj:$HF_TOKEN@huggingface.co/csukuangfj/sherpa-onnx-flutter main
  114 +
  115 + tts:
  116 + name: tts ${{ matrix.index }}/${{ matrix.total }}
  117 + runs-on: ${{ matrix.os }}
  118 + strategy:
  119 + fail-fast: false
  120 + matrix:
  121 + os: [windows-latest]
  122 + total: ["20"]
  123 + index: ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "11", "12", "13", "14", "15", "16", "17", "18", "19"]
  124 +
  125 + steps:
  126 + - uses: actions/checkout@v4
  127 + with:
  128 + fetch-depth: 0
  129 +
  130 + - name: Install Python dependencies
  131 + shell: bash
  132 + run: |
  133 + python3 -m pip install --upgrade pip jinja2 iso639-lang
  134 +
  135 + - name: Setup Flutter SDK
  136 + uses: flutter-actions/setup-flutter@v3
  137 + with:
  138 + channel: stable
  139 + version: latest
  140 +
  141 + - name: Display PWD
  142 + shell: bash
  143 + run: |
  144 + echo "pwd: $PWD"
  145 + ls -lh
  146 +
  147 + - name: Display machine info
  148 + shell: bash
  149 + run: |
  150 + uname -a
  151 +
  152 + - name: Display flutter info
  153 + shell: bash
  154 + run: |
  155 + which flutter
  156 + which dart
  157 +
  158 + flutter --version
  159 + dart --version
  160 + flutter doctor
  161 +
  162 + - name: Build flutter
  163 + shell: bash
  164 + run: |
  165 + cd scripts/flutter
  166 +
  167 + total=${{ matrix.total }}
  168 + index=${{ matrix.index }}
  169 +
  170 + ./generate-tts.py --total $total --index $index
  171 +
  172 + chmod +x *.sh
  173 + ./build-windows-tts.sh
  174 + cd ../../
  175 + ls -lh *.tar.bz2
83 176
84 - name: Publish to huggingface 177 - name: Publish to huggingface
85 - if: (github.repository_owner == 'csukuangfj' || github.repository_owner == 'k2-fsa') && ((github.event_name == 'push' || github.event_name == 'workflow_dispatch') || contains(github.ref, 'refs/tags/')) 178 + if: (github.repository_owner == 'csukuangfj' || github.repository_owner == 'k2-fsa' || github.repository_owner == 'csu-fangjun') && ((github.event_name == 'push' || github.event_name == 'workflow_dispatch') || contains(github.ref, 'refs/tags/'))
86 env: 179 env:
87 HF_TOKEN: ${{ secrets.HF_TOKEN }} 180 HF_TOKEN: ${{ secrets.HF_TOKEN }}
88 uses: nick-fields/retry@v3 181 uses: nick-fields/retry@v3
@@ -98,13 +191,18 @@ jobs: @@ -98,13 +191,18 @@ jobs:
98 export GIT_LFS_SKIP_SMUDGE=1 191 export GIT_LFS_SKIP_SMUDGE=1
99 export GIT_CLONE_PROTECTION_ACTIVE=false 192 export GIT_CLONE_PROTECTION_ACTIVE=false
100 193
  194 + SHERPA_ONNX_VERSION=$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2)
  195 + echo "SHERPA_ONNX_VERSION $SHERPA_ONNX_VERSION"
  196 +
101 git clone https://huggingface.co/csukuangfj/sherpa-onnx-flutter huggingface 197 git clone https://huggingface.co/csukuangfj/sherpa-onnx-flutter huggingface
102 cd huggingface 198 cd huggingface
103 git fetch 199 git fetch
104 git pull 200 git pull
105 git merge -m "merge remote" --ff origin main 201 git merge -m "merge remote" --ff origin main
106 - mkdir -p flutter/asr  
107 - cp -v ../*.tar.bz2 ./flutter/asr 202 +
  203 + dst=flutter/tts/windows/$SHERPA_ONNX_VERSION
  204 + mkdir -p $dst
  205 + cp -v ../*.tar.bz2 $dst
108 206
109 git status 207 git status
110 git lfs track "*.bz2" 208 git lfs track "*.bz2"
  1 +# Note about android
  2 +
  3 +Useful commands
  4 +
  5 +```bash
  6 +flutter build apk --split-per-abi --release
  7 +```
  8 +
  9 +The above commands print the following:
  10 +
  11 +```
  12 +✓ Built build/app/outputs/flutter-apk/app-armeabi-v7a-release.apk (94.8MB)
  13 +✓ Built build/app/outputs/flutter-apk/app-arm64-v8a-release.apk (96.1MB)
  14 +✓ Built build/app/outputs/flutter-apk/app-x86_64-release.apk (96.9MB)
  15 +```
  16 +
  17 +Note that it does not generate APK for `x86`.
  18 +
  19 +```
  20 +adb install build/app/outputs/flutter-apk/app-arm64-v8a-release.apk
  21 +```
  1 +# Introduction
  2 +
  3 +This document describes how the [tts](./tts) folder is created.
  4 +
  5 +
  6 +```bash
  7 +flutter create --platforms windows,macos,linux,android,ios tts
  8 +```
  9 +
  10 +It prints the following:
  11 +
  12 +```
  13 +Developer identity "Apple Development: xxx@zzz.com (xxxxxxx)" selected for iOS code signing
  14 +Creating project tts...
  15 +Resolving dependencies in `tts`... (1.3s)
  16 +Downloading packages...
  17 +Got dependencies in `tts`.
  18 +Wrote 122 files.
  19 +
  20 +All done!
  21 +You can find general documentation for Flutter at: https://docs.flutter.dev/
  22 +Detailed API documentation is available at: https://api.flutter.dev/
  23 +If you prefer video documentation, consider: https://www.youtube.com/c/flutterdev
  24 +
  25 +In order to run your application, type:
  26 +
  27 + $ cd tts
  28 + $ flutter run
  29 +
  30 +Your application code is in tts/lib/main.dart.
  31 +```
  32 +
  33 +```
  34 +cd tts
  35 +flutter pub get
  36 +flutter build macos
  37 +flutter run -d macos
  38 +```
@@ -12,11 +12,14 @@ Future<String> copyAssetFile(String src, [String? dst]) async { @@ -12,11 +12,14 @@ Future<String> copyAssetFile(String src, [String? dst]) async {
12 dst = basename(src); 12 dst = basename(src);
13 } 13 }
14 final target = join(directory.path, dst); 14 final target = join(directory.path, dst);
  15 + bool exists = await new File(target).exists();
15 16
16 - final data = await rootBundle.load(src);  
17 - final List<int> bytes =  
18 - data.buffer.asUint8List(data.offsetInBytes, data.lengthInBytes);  
19 - await File(target).writeAsBytes(bytes); 17 + if (!exists) {
  18 + final data = await rootBundle.load(src);
  19 + final List<int> bytes =
  20 + data.buffer.asUint8List(data.offsetInBytes, data.lengthInBytes);
  21 + await File(target).writeAsBytes(bytes);
  22 + }
20 23
21 return target; 24 return target;
22 } 25 }
  1 +# Miscellaneous
  2 +*.class
  3 +*.log
  4 +*.pyc
  5 +*.swp
  6 +.DS_Store
  7 +.atom/
  8 +.buildlog/
  9 +.history
  10 +.svn/
  11 +migrate_working_dir/
  12 +
  13 +# IntelliJ related
  14 +*.iml
  15 +*.ipr
  16 +*.iws
  17 +.idea/
  18 +
  19 +# The .vscode folder contains launch configuration and tasks you configure in
  20 +# VS Code which you may wish to be included in version control, so this line
  21 +# is commented out by default.
  22 +#.vscode/
  23 +
  24 +# Flutter/Dart/Pub related
  25 +**/doc/api/
  26 +**/ios/Flutter/.last_build_id
  27 +.dart_tool/
  28 +.flutter-plugins
  29 +.flutter-plugins-dependencies
  30 +.pub-cache/
  31 +.pub/
  32 +/build/
  33 +
  34 +# Symbolication related
  35 +app.*.symbols
  36 +
  37 +# Obfuscation related
  38 +app.*.map.json
  39 +
  40 +# Android Studio will place build artifacts here
  41 +/android/app/debug
  42 +/android/app/profile
  43 +/android/app/release
  1 +# This file tracks properties of this Flutter project.
  2 +# Used by Flutter tool to assess capabilities and perform upgrades etc.
  3 +#
  4 +# This file should be version controlled and should not be manually edited.
  5 +
  6 +version:
  7 + revision: "5dcb86f68f239346676ceb1ed1ea385bd215fba1"
  8 + channel: "stable"
  9 +
  10 +project_type: app
  11 +
  12 +# Tracks metadata for the flutter migrate command
  13 +migration:
  14 + platforms:
  15 + - platform: root
  16 + create_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
  17 + base_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
  18 + - platform: android
  19 + create_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
  20 + base_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
  21 + - platform: ios
  22 + create_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
  23 + base_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
  24 + - platform: linux
  25 + create_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
  26 + base_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
  27 + - platform: macos
  28 + create_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
  29 + base_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
  30 + - platform: windows
  31 + create_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
  32 + base_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
  33 +
  34 + # User provided section
  35 +
  36 + # List of Local paths (relative to this file) that should be
  37 + # ignored by the migrate tool.
  38 + #
  39 + # Files that are not part of the templates will be ignored by default.
  40 + unmanaged_files:
  41 + - 'lib/main.dart'
  42 + - 'ios/Runner.xcodeproj/project.pbxproj'
  1 +# tts
  2 +
  3 +This example demonstrates how to use text to speech (TTS) in Flutter with sherpa-onnx.
  4 +
  5 +It works on the following platforms:
  6 +
  7 + - Android
  8 + - iOS
  9 + - Linux
  10 + - macOS (both arm64 and x86_64 are supported)
  11 + - Windows
  12 +
  13 +## How to build
  14 +
  15 +Before you run `flutter build`, you have to select a TTS model and change
  16 +the code to use your selected model.
  17 +
  18 +### 1. Select a TTS model
  19 +
  20 +We have a list of TTS models at
  21 +
  22 +<https://github.com/k2-fsa/sherpa-onnx/releases/tag/tts-models>
  23 +
  24 +You can select any of them. If you feel that there are so many that you don't know
  25 +which one is the best, please visit <http://huggingface.co/spaces/k2-fsa/text-to-speech>
  26 +and try each one by yourself and select the one you consider the best.
  27 +
  28 +Suppose you select
  29 +
  30 + <https://github.com/k2-fsa/sherpa-onnx/releases/download/tts-models/vits-piper-en_US-libritts_r-medium.tar.bz2>
  31 +
  32 +Then please do the following:
  33 +
  34 + - 1. Download and unzip the model
  35 +
  36 +```bash
  37 +cd flutter-examples/tts/assets
  38 +wget https://github.com/k2-fsa/sherpa-onnx/releases/download/tts-models/vits-piper-en_US-libritts_r-medium.tar.bz2
  39 +tar xf vits-piper-en_US-libritts_r-medium.tar.bz2
  40 +rm vits-piper-en_US-libritts_r-medium.tar.bz2
  41 +cd ..
  42 +
  43 +./generate-asset-list.py
  44 +```
  45 +
  46 + Note that you have to run [./generate-asset-list.py](./generate-asset-list.py) so that Flutter knows where
  47 + to find the model.
  48 +
  49 + - 2. Change the code to use the downloaded model.
  50 +
  51 + We have given several examples for different models in [./lib/model.dart](./lib/model.dart).
  52 + For our selected model, we need to change [./lib/model.dart](./lib/model.dart) so that it looks like below:
  53 +
  54 +```
  55 +// Example 6
  56 +// https://github.com/k2-fsa/sherpa-onnx/releases/tag/tts-models
  57 +// https://github.com/k2-fsa/sherpa-onnx/releases/download/tts-models/vits-piper-en_US-libritts_r-medium.tar.bz2
  58 +modelDir = 'vits-piper-en_US-libritts_r-medium';
  59 +modelName = 'en_US-libritts_r-medium.onnx';
  60 +dataDir = 'vits-piper-en_US-libritts_r-medium/espeak-ng-data';
  61 +```
  62 +
  63 + - 3. That's it.
  64 +
  65 +### Build the APP
  66 +
  67 + - 1. For Linux
  68 +
  69 +```bash
  70 +flutter build linux
  71 +
  72 +# See below if you get any errors
  73 +```
  74 +
  75 + - 2. For macOS
  76 +
  77 +To build a universal2 APP, use
  78 +
  79 +```bash
  80 +flutter build macos
  81 +```
  82 +
  83 +To build for `x86_64`, use
  84 +
  85 +```bash
  86 +export FLUTTER_XCODE_ARCHS=x86_64
  87 +flutter build macos
  88 +```
  89 +
  90 +To build for `arm64`, use
  91 +
  92 +```bash
  93 +export FLUTTER_XCODE_ARCHS=arm64
  94 +flutter build macos
  95 +```
  96 +
  97 + - 3. For Windows
  98 +
  99 +```bash
  100 +flutter build windows
  101 +```
  102 +
  103 + - 4. For Android
  104 +
  105 +```bash
  106 +flutter build apk --split-per-abi
  107 +```
  108 +
  109 + - 5. For iOS
  110 +
  111 +```
  112 +flutter build ios
  113 +```
  114 +
  115 +## Fix for Linux
  116 +
  117 +If you get the following errors on Linux,
  118 +
  119 +```
  120 +Building Linux application...
  121 +CMake Error at /usr/local/share/cmake-3.29/Modules/FindPkgConfig.cmake:634 (message):
  122 + The following required packages were not found:
  123 +
  124 + - gstreamer-1.0
  125 +
  126 +Call Stack (most recent call first):
  127 + /usr/local/share/cmake-3.29/Modules/FindPkgConfig.cmake:862 (_pkg_check_modules_internal)
  128 + flutter/ephemeral/.plugin_symlinks/audioplayers_linux/linux/CMakeLists.txt:24 (pkg_check_modules)
  129 +```
  130 +
  131 +please run:
  132 +
  133 +```bash
  134 +sudo apt-get install -y libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libunwind-dev
  135 +```
  136 +
  137 +See also <https://github.com/bluefireteam/audioplayers/tree/main/packages/audioplayers_linux#setup-for-linux>
  138 +for the above error.
  1 +# This file configures the analyzer, which statically analyzes Dart code to
  2 +# check for errors, warnings, and lints.
  3 +#
  4 +# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
  5 +# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
  6 +# invoked from the command line by running `flutter analyze`.
  7 +
  8 +# The following line activates a set of recommended lints for Flutter apps,
  9 +# packages, and plugins designed to encourage good coding practices.
  10 +include: package:flutter_lints/flutter.yaml
  11 +
  12 +linter:
  13 + # The lint rules applied to this project can be customized in the
  14 + # section below to disable rules from the `package:flutter_lints/flutter.yaml`
  15 + # included above or to enable additional rules. A list of all available lints
  16 + # and their documentation is published at https://dart.dev/lints.
  17 + #
  18 + # Instead of disabling a lint rule for the entire project in the
  19 + # section below, it can also be suppressed for a single line of code
  20 + # or a specific dart file by using the `// ignore: name_of_lint` and
  21 + # `// ignore_for_file: name_of_lint` syntax on the line or in the file
  22 + # producing the lint.
  23 + rules:
  24 + # avoid_print: false # Uncomment to disable the `avoid_print` rule
  25 + # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
  26 +
  27 +# Additional information about this file can be found at
  28 +# https://dart.dev/guides/language/analysis-options
  1 +gradle-wrapper.jar
  2 +/.gradle
  3 +/captures/
  4 +/gradlew
  5 +/gradlew.bat
  6 +/local.properties
  7 +GeneratedPluginRegistrant.java
  8 +
  9 +# Remember to never publicly share your keystore.
  10 +# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
  11 +key.properties
  12 +**/*.keystore
  13 +**/*.jks
  1 +plugins {
  2 + id "com.android.application"
  3 + id "kotlin-android"
  4 + // The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
  5 + id "dev.flutter.flutter-gradle-plugin"
  6 +}
  7 +
  8 +def localProperties = new Properties()
  9 +def localPropertiesFile = rootProject.file("local.properties")
  10 +if (localPropertiesFile.exists()) {
  11 + localPropertiesFile.withReader("UTF-8") { reader ->
  12 + localProperties.load(reader)
  13 + }
  14 +}
  15 +
  16 +def flutterVersionCode = localProperties.getProperty("flutter.versionCode")
  17 +if (flutterVersionCode == null) {
  18 + flutterVersionCode = "1"
  19 +}
  20 +
  21 +def flutterVersionName = localProperties.getProperty("flutter.versionName")
  22 +if (flutterVersionName == null) {
  23 + flutterVersionName = "1.0"
  24 +}
  25 +
  26 +android {
  27 + namespace = "com.k2fsa.sherpa.onnx.tts"
  28 + compileSdk = flutter.compileSdkVersion
  29 + ndkVersion = flutter.ndkVersion
  30 +
  31 + compileOptions {
  32 + sourceCompatibility = JavaVersion.VERSION_1_8
  33 + targetCompatibility = JavaVersion.VERSION_1_8
  34 + }
  35 +
  36 + defaultConfig {
  37 + // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
  38 + applicationId = "com.k2fsa.sherpa.onnx.tts"
  39 + // You can update the following values to match your application needs.
  40 + // For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
  41 + minSdk = flutter.minSdkVersion
  42 + targetSdk = flutter.targetSdkVersion
  43 + versionCode = flutterVersionCode.toInteger()
  44 + versionName = flutterVersionName
  45 + }
  46 +
  47 + buildTypes {
  48 + release {
  49 + // TODO: Add your own signing config for the release build.
  50 + // Signing with the debug keys for now, so `flutter run --release` works.
  51 + signingConfig = signingConfigs.debug
  52 + }
  53 + }
  54 +}
  55 +
  56 +flutter {
  57 + source = "../.."
  58 +}
  1 +<manifest xmlns:android="http://schemas.android.com/apk/res/android">
  2 + <!-- The INTERNET permission is required for development. Specifically,
  3 + the Flutter tool needs it to communicate with the running application
  4 + to allow setting breakpoints, to provide hot reload, etc.
  5 + -->
  6 + <uses-permission android:name="android.permission.INTERNET"/>
  7 +</manifest>
  1 +<manifest xmlns:android="http://schemas.android.com/apk/res/android">
  2 + <application
  3 + android:label="tts"
  4 + android:name="${applicationName}"
  5 + android:icon="@mipmap/ic_launcher">
  6 + <activity
  7 + android:name=".MainActivity"
  8 + android:exported="true"
  9 + android:launchMode="singleTop"
  10 + android:taskAffinity=""
  11 + android:theme="@style/LaunchTheme"
  12 + android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
  13 + android:hardwareAccelerated="true"
  14 + android:windowSoftInputMode="adjustResize">
  15 + <!-- Specifies an Android theme to apply to this Activity as soon as
  16 + the Android process has started. This theme is visible to the user
  17 + while the Flutter UI initializes. After that, this theme continues
  18 + to determine the Window background behind the Flutter UI. -->
  19 + <meta-data
  20 + android:name="io.flutter.embedding.android.NormalTheme"
  21 + android:resource="@style/NormalTheme"
  22 + />
  23 + <intent-filter>
  24 + <action android:name="android.intent.action.MAIN"/>
  25 + <category android:name="android.intent.category.LAUNCHER"/>
  26 + </intent-filter>
  27 + </activity>
  28 + <!-- Don't delete the meta-data below.
  29 + This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
  30 + <meta-data
  31 + android:name="flutterEmbedding"
  32 + android:value="2" />
  33 + </application>
  34 + <!-- Required to query activities that can process text, see:
  35 + https://developer.android.com/training/package-visibility and
  36 + https://developer.android.com/reference/android/content/Intent#ACTION_PROCESS_TEXT.
  37 +
  38 + In particular, this is used by the Flutter engine in io.flutter.plugin.text.ProcessTextPlugin. -->
  39 + <queries>
  40 + <intent>
  41 + <action android:name="android.intent.action.PROCESS_TEXT"/>
  42 + <data android:mimeType="text/plain"/>
  43 + </intent>
  44 + </queries>
  45 +</manifest>
  1 +package com.k2fsa.sherpa.onnx.tts
  2 +
  3 +import io.flutter.embedding.android.FlutterActivity
  4 +
  5 +class MainActivity: FlutterActivity()
  1 +<?xml version="1.0" encoding="utf-8"?>
  2 +<!-- Modify this file to customize your launch splash screen -->
  3 +<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
  4 + <item android:drawable="?android:colorBackground" />
  5 +
  6 + <!-- You can insert your own image assets here -->
  7 + <!-- <item>
  8 + <bitmap
  9 + android:gravity="center"
  10 + android:src="@mipmap/launch_image" />
  11 + </item> -->
  12 +</layer-list>
  1 +<?xml version="1.0" encoding="utf-8"?>
  2 +<!-- Modify this file to customize your launch splash screen -->
  3 +<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
  4 + <item android:drawable="@android:color/white" />
  5 +
  6 + <!-- You can insert your own image assets here -->
  7 + <!-- <item>
  8 + <bitmap
  9 + android:gravity="center"
  10 + android:src="@mipmap/launch_image" />
  11 + </item> -->
  12 +</layer-list>
  1 +<?xml version="1.0" encoding="utf-8"?>
  2 +<resources>
  3 + <!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is on -->
  4 + <style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
  5 + <!-- Show a splash screen on the activity. Automatically removed when
  6 + the Flutter engine draws its first frame -->
  7 + <item name="android:windowBackground">@drawable/launch_background</item>
  8 + </style>
  9 + <!-- Theme applied to the Android Window as soon as the process has started.
  10 + This theme determines the color of the Android Window while your
  11 + Flutter UI initializes, as well as behind your Flutter UI while its
  12 + running.
  13 +
  14 + This Theme is only used starting with V2 of Flutter's Android embedding. -->
  15 + <style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar">
  16 + <item name="android:windowBackground">?android:colorBackground</item>
  17 + </style>
  18 +</resources>
  1 +<?xml version="1.0" encoding="utf-8"?>
  2 +<resources>
  3 + <!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is off -->
  4 + <style name="LaunchTheme" parent="@android:style/Theme.Light.NoTitleBar">
  5 + <!-- Show a splash screen on the activity. Automatically removed when
  6 + the Flutter engine draws its first frame -->
  7 + <item name="android:windowBackground">@drawable/launch_background</item>
  8 + </style>
  9 + <!-- Theme applied to the Android Window as soon as the process has started.
  10 + This theme determines the color of the Android Window while your
  11 + Flutter UI initializes, as well as behind your Flutter UI while its
  12 + running.
  13 +
  14 + This Theme is only used starting with V2 of Flutter's Android embedding. -->
  15 + <style name="NormalTheme" parent="@android:style/Theme.Light.NoTitleBar">
  16 + <item name="android:windowBackground">?android:colorBackground</item>
  17 + </style>
  18 +</resources>
  1 +<manifest xmlns:android="http://schemas.android.com/apk/res/android">
  2 + <!-- The INTERNET permission is required for development. Specifically,
  3 + the Flutter tool needs it to communicate with the running application
  4 + to allow setting breakpoints, to provide hot reload, etc.
  5 + -->
  6 + <uses-permission android:name="android.permission.INTERNET"/>
  7 +</manifest>
  1 +allprojects {
  2 + repositories {
  3 + google()
  4 + mavenCentral()
  5 + }
  6 +}
  7 +
  8 +rootProject.buildDir = "../build"
  9 +subprojects {
  10 + project.buildDir = "${rootProject.buildDir}/${project.name}"
  11 +}
  12 +subprojects {
  13 + project.evaluationDependsOn(":app")
  14 +}
  15 +
  16 +tasks.register("clean", Delete) {
  17 + delete rootProject.buildDir
  18 +}
  1 +org.gradle.jvmargs=-Xmx4G -XX:+HeapDumpOnOutOfMemoryError
  2 +android.useAndroidX=true
  3 +android.enableJetifier=true
  1 +distributionBase=GRADLE_USER_HOME
  2 +distributionPath=wrapper/dists
  3 +zipStoreBase=GRADLE_USER_HOME
  4 +zipStorePath=wrapper/dists
  5 +distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.3-all.zip
  1 +pluginManagement {
  2 + def flutterSdkPath = {
  3 + def properties = new Properties()
  4 + file("local.properties").withInputStream { properties.load(it) }
  5 + def flutterSdkPath = properties.getProperty("flutter.sdk")
  6 + assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
  7 + return flutterSdkPath
  8 + }()
  9 +
  10 + includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")
  11 +
  12 + repositories {
  13 + google()
  14 + mavenCentral()
  15 + gradlePluginPortal()
  16 + }
  17 +}
  18 +
  19 +plugins {
  20 + id "dev.flutter.flutter-plugin-loader" version "1.0.0"
  21 + id "com.android.application" version "7.3.0" apply false
  22 + id "org.jetbrains.kotlin.android" version "1.7.10" apply false
  23 +}
  24 +
  25 +include ":app"
  1 +#!/usr/bin/env python3
  2 +
  3 +"""
  4 +This file assumes that
  5 + assets:
  6 +is the last line in ./pubspec.yaml
  7 +
  8 +It reads the file names of all files from the ./assets folder
  9 +and turns them as assets and writes them into ./pubspec.yaml
  10 +"""
  11 +
  12 +import os
  13 +
  14 +
  15 +def main():
  16 + target = "./assets"
  17 + excluded_ext = [
  18 + ".gitkeep",
  19 + ".onnx.json",
  20 + ".py",
  21 + ".sh",
  22 + "*.md",
  23 + "MODEL_CARD",
  24 + ]
  25 + sep = " "
  26 + ss = []
  27 + for root, d, files in os.walk(target):
  28 + for f in files:
  29 + skip = False
  30 + for p in excluded_ext:
  31 + if f.endswith(p):
  32 + skip = True
  33 + break
  34 +
  35 + if skip:
  36 + continue
  37 +
  38 + t = os.path.join(root, f).replace("\\", "/")
  39 + ss.append("{sep}- {t}".format(sep=sep, t=t))
  40 +
  41 + # read pub.spec.yaml
  42 + with open("./pubspec.yaml", encoding="utf-8") as f:
  43 + lines = f.readlines()
  44 +
  45 + found_assets = False
  46 + with open("./pubspec.yaml", "w", encoding="utf-8") as f:
  47 + for line in lines:
  48 + if line == " assets:\n":
  49 + assert found_assets is False
  50 + found_assets = True
  51 + if len(ss) > 0:
  52 + f.write(line)
  53 +
  54 + if not found_assets:
  55 + f.write(line)
  56 + continue
  57 +
  58 + for s in ss:
  59 + f.write("{s}\n".format(s=s))
  60 + break
  61 +
  62 + if not found_assets and ss:
  63 + f.write(" assets:\n")
  64 + for s in ss:
  65 + f.write("{s}\n".format(s=s))
  66 +
  67 +
  68 +if __name__ == "__main__":
  69 + main()
  1 +**/dgph
  2 +*.mode1v3
  3 +*.mode2v3
  4 +*.moved-aside
  5 +*.pbxuser
  6 +*.perspectivev3
  7 +**/*sync/
  8 +.sconsign.dblite
  9 +.tags*
  10 +**/.vagrant/
  11 +**/DerivedData/
  12 +Icon?
  13 +**/Pods/
  14 +**/.symlinks/
  15 +profile
  16 +xcuserdata
  17 +**/.generated/
  18 +Flutter/App.framework
  19 +Flutter/Flutter.framework
  20 +Flutter/Flutter.podspec
  21 +Flutter/Generated.xcconfig
  22 +Flutter/ephemeral/
  23 +Flutter/app.flx
  24 +Flutter/app.zip
  25 +Flutter/flutter_assets/
  26 +Flutter/flutter_export_environment.sh
  27 +ServiceDefinitions.json
  28 +Runner/GeneratedPluginRegistrant.*
  29 +
  30 +# Exceptions to above rules.
  31 +!default.mode1v3
  32 +!default.mode2v3
  33 +!default.pbxuser
  34 +!default.perspectivev3
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3 +<plist version="1.0">
  4 +<dict>
  5 + <key>CFBundleDevelopmentRegion</key>
  6 + <string>en</string>
  7 + <key>CFBundleExecutable</key>
  8 + <string>App</string>
  9 + <key>CFBundleIdentifier</key>
  10 + <string>io.flutter.flutter.app</string>
  11 + <key>CFBundleInfoDictionaryVersion</key>
  12 + <string>6.0</string>
  13 + <key>CFBundleName</key>
  14 + <string>App</string>
  15 + <key>CFBundlePackageType</key>
  16 + <string>FMWK</string>
  17 + <key>CFBundleShortVersionString</key>
  18 + <string>1.0</string>
  19 + <key>CFBundleSignature</key>
  20 + <string>????</string>
  21 + <key>CFBundleVersion</key>
  22 + <string>1.0</string>
  23 + <key>MinimumOSVersion</key>
  24 + <string>12.0</string>
  25 +</dict>
  26 +</plist>
  1 +#include "Generated.xcconfig"
  1 +// !$*UTF8*$!
  2 +{
  3 + archiveVersion = 1;
  4 + classes = {
  5 + };
  6 + objectVersion = 54;
  7 + objects = {
  8 +
  9 +/* Begin PBXBuildFile section */
  10 + 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
  11 + 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C807B294A618700263BE5 /* RunnerTests.swift */; };
  12 + 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
  13 + 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
  14 + 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
  15 + 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
  16 + 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
  17 +/* End PBXBuildFile section */
  18 +
  19 +/* Begin PBXContainerItemProxy section */
  20 + 331C8085294A63A400263BE5 /* PBXContainerItemProxy */ = {
  21 + isa = PBXContainerItemProxy;
  22 + containerPortal = 97C146E61CF9000F007C117D /* Project object */;
  23 + proxyType = 1;
  24 + remoteGlobalIDString = 97C146ED1CF9000F007C117D;
  25 + remoteInfo = Runner;
  26 + };
  27 +/* End PBXContainerItemProxy section */
  28 +
  29 +/* Begin PBXCopyFilesBuildPhase section */
  30 + 9705A1C41CF9048500538489 /* Embed Frameworks */ = {
  31 + isa = PBXCopyFilesBuildPhase;
  32 + buildActionMask = 2147483647;
  33 + dstPath = "";
  34 + dstSubfolderSpec = 10;
  35 + files = (
  36 + );
  37 + name = "Embed Frameworks";
  38 + runOnlyForDeploymentPostprocessing = 0;
  39 + };
  40 +/* End PBXCopyFilesBuildPhase section */
  41 +
  42 +/* Begin PBXFileReference section */
  43 + 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = "<group>"; };
  44 + 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = "<group>"; };
  45 + 331C807B294A618700263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = "<group>"; };
  46 + 331C8081294A63A400263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
  47 + 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = "<group>"; };
  48 + 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = "<group>"; };
  49 + 74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
  50 + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
  51 + 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = "<group>"; };
  52 + 9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = "<group>"; };
  53 + 97C146EE1CF9000F007C117D /* Runner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Runner.app; sourceTree = BUILT_PRODUCTS_DIR; };
  54 + 97C146FB1CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
  55 + 97C146FD1CF9000F007C117D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
  56 + 97C147001CF9000F007C117D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
  57 + 97C147021CF9000F007C117D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
  58 +/* End PBXFileReference section */
  59 +
  60 +/* Begin PBXFrameworksBuildPhase section */
  61 + 97C146EB1CF9000F007C117D /* Frameworks */ = {
  62 + isa = PBXFrameworksBuildPhase;
  63 + buildActionMask = 2147483647;
  64 + files = (
  65 + );
  66 + runOnlyForDeploymentPostprocessing = 0;
  67 + };
  68 +/* End PBXFrameworksBuildPhase section */
  69 +
  70 +/* Begin PBXGroup section */
  71 + 331C8082294A63A400263BE5 /* RunnerTests */ = {
  72 + isa = PBXGroup;
  73 + children = (
  74 + 331C807B294A618700263BE5 /* RunnerTests.swift */,
  75 + );
  76 + path = RunnerTests;
  77 + sourceTree = "<group>";
  78 + };
  79 + 9740EEB11CF90186004384FC /* Flutter */ = {
  80 + isa = PBXGroup;
  81 + children = (
  82 + 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
  83 + 9740EEB21CF90195004384FC /* Debug.xcconfig */,
  84 + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
  85 + 9740EEB31CF90195004384FC /* Generated.xcconfig */,
  86 + );
  87 + name = Flutter;
  88 + sourceTree = "<group>";
  89 + };
  90 + 97C146E51CF9000F007C117D = {
  91 + isa = PBXGroup;
  92 + children = (
  93 + 9740EEB11CF90186004384FC /* Flutter */,
  94 + 97C146F01CF9000F007C117D /* Runner */,
  95 + 97C146EF1CF9000F007C117D /* Products */,
  96 + 331C8082294A63A400263BE5 /* RunnerTests */,
  97 + );
  98 + sourceTree = "<group>";
  99 + };
  100 + 97C146EF1CF9000F007C117D /* Products */ = {
  101 + isa = PBXGroup;
  102 + children = (
  103 + 97C146EE1CF9000F007C117D /* Runner.app */,
  104 + 331C8081294A63A400263BE5 /* RunnerTests.xctest */,
  105 + );
  106 + name = Products;
  107 + sourceTree = "<group>";
  108 + };
  109 + 97C146F01CF9000F007C117D /* Runner */ = {
  110 + isa = PBXGroup;
  111 + children = (
  112 + 97C146FA1CF9000F007C117D /* Main.storyboard */,
  113 + 97C146FD1CF9000F007C117D /* Assets.xcassets */,
  114 + 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */,
  115 + 97C147021CF9000F007C117D /* Info.plist */,
  116 + 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */,
  117 + 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */,
  118 + 74858FAE1ED2DC5600515810 /* AppDelegate.swift */,
  119 + 74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */,
  120 + );
  121 + path = Runner;
  122 + sourceTree = "<group>";
  123 + };
  124 +/* End PBXGroup section */
  125 +
  126 +/* Begin PBXNativeTarget section */
  127 + 331C8080294A63A400263BE5 /* RunnerTests */ = {
  128 + isa = PBXNativeTarget;
  129 + buildConfigurationList = 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */;
  130 + buildPhases = (
  131 + 331C807D294A63A400263BE5 /* Sources */,
  132 + 331C807F294A63A400263BE5 /* Resources */,
  133 + );
  134 + buildRules = (
  135 + );
  136 + dependencies = (
  137 + 331C8086294A63A400263BE5 /* PBXTargetDependency */,
  138 + );
  139 + name = RunnerTests;
  140 + productName = RunnerTests;
  141 + productReference = 331C8081294A63A400263BE5 /* RunnerTests.xctest */;
  142 + productType = "com.apple.product-type.bundle.unit-test";
  143 + };
  144 + 97C146ED1CF9000F007C117D /* Runner */ = {
  145 + isa = PBXNativeTarget;
  146 + buildConfigurationList = 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */;
  147 + buildPhases = (
  148 + 9740EEB61CF901F6004384FC /* Run Script */,
  149 + 97C146EA1CF9000F007C117D /* Sources */,
  150 + 97C146EB1CF9000F007C117D /* Frameworks */,
  151 + 97C146EC1CF9000F007C117D /* Resources */,
  152 + 9705A1C41CF9048500538489 /* Embed Frameworks */,
  153 + 3B06AD1E1E4923F5004D2608 /* Thin Binary */,
  154 + );
  155 + buildRules = (
  156 + );
  157 + dependencies = (
  158 + );
  159 + name = Runner;
  160 + productName = Runner;
  161 + productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
  162 + productType = "com.apple.product-type.application";
  163 + };
  164 +/* End PBXNativeTarget section */
  165 +
  166 +/* Begin PBXProject section */
  167 + 97C146E61CF9000F007C117D /* Project object */ = {
  168 + isa = PBXProject;
  169 + attributes = {
  170 + BuildIndependentTargetsInParallel = YES;
  171 + LastUpgradeCheck = 1510;
  172 + ORGANIZATIONNAME = "";
  173 + TargetAttributes = {
  174 + 331C8080294A63A400263BE5 = {
  175 + CreatedOnToolsVersion = 14.0;
  176 + TestTargetID = 97C146ED1CF9000F007C117D;
  177 + };
  178 + 97C146ED1CF9000F007C117D = {
  179 + CreatedOnToolsVersion = 7.3.1;
  180 + LastSwiftMigration = 1100;
  181 + };
  182 + };
  183 + };
  184 + buildConfigurationList = 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */;
  185 + compatibilityVersion = "Xcode 9.3";
  186 + developmentRegion = en;
  187 + hasScannedForEncodings = 0;
  188 + knownRegions = (
  189 + en,
  190 + Base,
  191 + );
  192 + mainGroup = 97C146E51CF9000F007C117D;
  193 + productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
  194 + projectDirPath = "";
  195 + projectRoot = "";
  196 + targets = (
  197 + 97C146ED1CF9000F007C117D /* Runner */,
  198 + 331C8080294A63A400263BE5 /* RunnerTests */,
  199 + );
  200 + };
  201 +/* End PBXProject section */
  202 +
  203 +/* Begin PBXResourcesBuildPhase section */
  204 + 331C807F294A63A400263BE5 /* Resources */ = {
  205 + isa = PBXResourcesBuildPhase;
  206 + buildActionMask = 2147483647;
  207 + files = (
  208 + );
  209 + runOnlyForDeploymentPostprocessing = 0;
  210 + };
  211 + 97C146EC1CF9000F007C117D /* Resources */ = {
  212 + isa = PBXResourcesBuildPhase;
  213 + buildActionMask = 2147483647;
  214 + files = (
  215 + 97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */,
  216 + 3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */,
  217 + 97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */,
  218 + 97C146FC1CF9000F007C117D /* Main.storyboard in Resources */,
  219 + );
  220 + runOnlyForDeploymentPostprocessing = 0;
  221 + };
  222 +/* End PBXResourcesBuildPhase section */
  223 +
  224 +/* Begin PBXShellScriptBuildPhase section */
  225 + 3B06AD1E1E4923F5004D2608 /* Thin Binary */ = {
  226 + isa = PBXShellScriptBuildPhase;
  227 + alwaysOutOfDate = 1;
  228 + buildActionMask = 2147483647;
  229 + files = (
  230 + );
  231 + inputPaths = (
  232 + "${TARGET_BUILD_DIR}/${INFOPLIST_PATH}",
  233 + );
  234 + name = "Thin Binary";
  235 + outputPaths = (
  236 + );
  237 + runOnlyForDeploymentPostprocessing = 0;
  238 + shellPath = /bin/sh;
  239 + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" embed_and_thin";
  240 + };
  241 + 9740EEB61CF901F6004384FC /* Run Script */ = {
  242 + isa = PBXShellScriptBuildPhase;
  243 + alwaysOutOfDate = 1;
  244 + buildActionMask = 2147483647;
  245 + files = (
  246 + );
  247 + inputPaths = (
  248 + );
  249 + name = "Run Script";
  250 + outputPaths = (
  251 + );
  252 + runOnlyForDeploymentPostprocessing = 0;
  253 + shellPath = /bin/sh;
  254 + shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build";
  255 + };
  256 +/* End PBXShellScriptBuildPhase section */
  257 +
  258 +/* Begin PBXSourcesBuildPhase section */
  259 + 331C807D294A63A400263BE5 /* Sources */ = {
  260 + isa = PBXSourcesBuildPhase;
  261 + buildActionMask = 2147483647;
  262 + files = (
  263 + 331C808B294A63AB00263BE5 /* RunnerTests.swift in Sources */,
  264 + );
  265 + runOnlyForDeploymentPostprocessing = 0;
  266 + };
  267 + 97C146EA1CF9000F007C117D /* Sources */ = {
  268 + isa = PBXSourcesBuildPhase;
  269 + buildActionMask = 2147483647;
  270 + files = (
  271 + 74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */,
  272 + 1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */,
  273 + );
  274 + runOnlyForDeploymentPostprocessing = 0;
  275 + };
  276 +/* End PBXSourcesBuildPhase section */
  277 +
  278 +/* Begin PBXTargetDependency section */
  279 + 331C8086294A63A400263BE5 /* PBXTargetDependency */ = {
  280 + isa = PBXTargetDependency;
  281 + target = 97C146ED1CF9000F007C117D /* Runner */;
  282 + targetProxy = 331C8085294A63A400263BE5 /* PBXContainerItemProxy */;
  283 + };
  284 +/* End PBXTargetDependency section */
  285 +
  286 +/* Begin PBXVariantGroup section */
  287 + 97C146FA1CF9000F007C117D /* Main.storyboard */ = {
  288 + isa = PBXVariantGroup;
  289 + children = (
  290 + 97C146FB1CF9000F007C117D /* Base */,
  291 + );
  292 + name = Main.storyboard;
  293 + sourceTree = "<group>";
  294 + };
  295 + 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */ = {
  296 + isa = PBXVariantGroup;
  297 + children = (
  298 + 97C147001CF9000F007C117D /* Base */,
  299 + );
  300 + name = LaunchScreen.storyboard;
  301 + sourceTree = "<group>";
  302 + };
  303 +/* End PBXVariantGroup section */
  304 +
  305 +/* Begin XCBuildConfiguration section */
  306 + 249021D3217E4FDB00AE95B9 /* Profile */ = {
  307 + isa = XCBuildConfiguration;
  308 + buildSettings = {
  309 + ALWAYS_SEARCH_USER_PATHS = NO;
  310 + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
  311 + CLANG_ANALYZER_NONNULL = YES;
  312 + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
  313 + CLANG_CXX_LIBRARY = "libc++";
  314 + CLANG_ENABLE_MODULES = YES;
  315 + CLANG_ENABLE_OBJC_ARC = YES;
  316 + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
  317 + CLANG_WARN_BOOL_CONVERSION = YES;
  318 + CLANG_WARN_COMMA = YES;
  319 + CLANG_WARN_CONSTANT_CONVERSION = YES;
  320 + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
  321 + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
  322 + CLANG_WARN_EMPTY_BODY = YES;
  323 + CLANG_WARN_ENUM_CONVERSION = YES;
  324 + CLANG_WARN_INFINITE_RECURSION = YES;
  325 + CLANG_WARN_INT_CONVERSION = YES;
  326 + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
  327 + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
  328 + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
  329 + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
  330 + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
  331 + CLANG_WARN_STRICT_PROTOTYPES = YES;
  332 + CLANG_WARN_SUSPICIOUS_MOVE = YES;
  333 + CLANG_WARN_UNREACHABLE_CODE = YES;
  334 + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
  335 + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
  336 + COPY_PHASE_STRIP = NO;
  337 + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
  338 + ENABLE_NS_ASSERTIONS = NO;
  339 + ENABLE_STRICT_OBJC_MSGSEND = YES;
  340 + ENABLE_USER_SCRIPT_SANDBOXING = NO;
  341 + GCC_C_LANGUAGE_STANDARD = gnu99;
  342 + GCC_NO_COMMON_BLOCKS = YES;
  343 + GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
  344 + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
  345 + GCC_WARN_UNDECLARED_SELECTOR = YES;
  346 + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
  347 + GCC_WARN_UNUSED_FUNCTION = YES;
  348 + GCC_WARN_UNUSED_VARIABLE = YES;
  349 + IPHONEOS_DEPLOYMENT_TARGET = 12.0;
  350 + MTL_ENABLE_DEBUG_INFO = NO;
  351 + SDKROOT = iphoneos;
  352 + SUPPORTED_PLATFORMS = iphoneos;
  353 + TARGETED_DEVICE_FAMILY = "1,2";
  354 + VALIDATE_PRODUCT = YES;
  355 + };
  356 + name = Profile;
  357 + };
  358 + 249021D4217E4FDB00AE95B9 /* Profile */ = {
  359 + isa = XCBuildConfiguration;
  360 + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
  361 + buildSettings = {
  362 + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
  363 + CLANG_ENABLE_MODULES = YES;
  364 + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
  365 + DEVELOPMENT_TEAM = N5ZH3Z63A6;
  366 + ENABLE_BITCODE = NO;
  367 + INFOPLIST_FILE = Runner/Info.plist;
  368 + LD_RUNPATH_SEARCH_PATHS = (
  369 + "$(inherited)",
  370 + "@executable_path/Frameworks",
  371 + );
  372 + PRODUCT_BUNDLE_IDENTIFIER = com.k2fsa.sherpa.onnx.tts;
  373 + PRODUCT_NAME = "$(TARGET_NAME)";
  374 + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
  375 + SWIFT_VERSION = 5.0;
  376 + VERSIONING_SYSTEM = "apple-generic";
  377 + };
  378 + name = Profile;
  379 + };
  380 + 331C8088294A63A400263BE5 /* Debug */ = {
  381 + isa = XCBuildConfiguration;
  382 + buildSettings = {
  383 + BUNDLE_LOADER = "$(TEST_HOST)";
  384 + CODE_SIGN_STYLE = Automatic;
  385 + CURRENT_PROJECT_VERSION = 1;
  386 + GENERATE_INFOPLIST_FILE = YES;
  387 + MARKETING_VERSION = 1.0;
  388 + PRODUCT_BUNDLE_IDENTIFIER = com.k2fsa.sherpa.onnx.tts.RunnerTests;
  389 + PRODUCT_NAME = "$(TARGET_NAME)";
  390 + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
  391 + SWIFT_OPTIMIZATION_LEVEL = "-Onone";
  392 + SWIFT_VERSION = 5.0;
  393 + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
  394 + };
  395 + name = Debug;
  396 + };
  397 + 331C8089294A63A400263BE5 /* Release */ = {
  398 + isa = XCBuildConfiguration;
  399 + buildSettings = {
  400 + BUNDLE_LOADER = "$(TEST_HOST)";
  401 + CODE_SIGN_STYLE = Automatic;
  402 + CURRENT_PROJECT_VERSION = 1;
  403 + GENERATE_INFOPLIST_FILE = YES;
  404 + MARKETING_VERSION = 1.0;
  405 + PRODUCT_BUNDLE_IDENTIFIER = com.k2fsa.sherpa.onnx.tts.RunnerTests;
  406 + PRODUCT_NAME = "$(TARGET_NAME)";
  407 + SWIFT_VERSION = 5.0;
  408 + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
  409 + };
  410 + name = Release;
  411 + };
  412 + 331C808A294A63A400263BE5 /* Profile */ = {
  413 + isa = XCBuildConfiguration;
  414 + buildSettings = {
  415 + BUNDLE_LOADER = "$(TEST_HOST)";
  416 + CODE_SIGN_STYLE = Automatic;
  417 + CURRENT_PROJECT_VERSION = 1;
  418 + GENERATE_INFOPLIST_FILE = YES;
  419 + MARKETING_VERSION = 1.0;
  420 + PRODUCT_BUNDLE_IDENTIFIER = com.k2fsa.sherpa.onnx.tts.RunnerTests;
  421 + PRODUCT_NAME = "$(TARGET_NAME)";
  422 + SWIFT_VERSION = 5.0;
  423 + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner";
  424 + };
  425 + name = Profile;
  426 + };
  427 + 97C147031CF9000F007C117D /* Debug */ = {
  428 + isa = XCBuildConfiguration;
  429 + buildSettings = {
  430 + ALWAYS_SEARCH_USER_PATHS = NO;
  431 + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
  432 + CLANG_ANALYZER_NONNULL = YES;
  433 + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
  434 + CLANG_CXX_LIBRARY = "libc++";
  435 + CLANG_ENABLE_MODULES = YES;
  436 + CLANG_ENABLE_OBJC_ARC = YES;
  437 + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
  438 + CLANG_WARN_BOOL_CONVERSION = YES;
  439 + CLANG_WARN_COMMA = YES;
  440 + CLANG_WARN_CONSTANT_CONVERSION = YES;
  441 + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
  442 + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
  443 + CLANG_WARN_EMPTY_BODY = YES;
  444 + CLANG_WARN_ENUM_CONVERSION = YES;
  445 + CLANG_WARN_INFINITE_RECURSION = YES;
  446 + CLANG_WARN_INT_CONVERSION = YES;
  447 + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
  448 + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
  449 + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
  450 + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
  451 + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
  452 + CLANG_WARN_STRICT_PROTOTYPES = YES;
  453 + CLANG_WARN_SUSPICIOUS_MOVE = YES;
  454 + CLANG_WARN_UNREACHABLE_CODE = YES;
  455 + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
  456 + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
  457 + COPY_PHASE_STRIP = NO;
  458 + DEBUG_INFORMATION_FORMAT = dwarf;
  459 + ENABLE_STRICT_OBJC_MSGSEND = YES;
  460 + ENABLE_TESTABILITY = YES;
  461 + ENABLE_USER_SCRIPT_SANDBOXING = NO;
  462 + GCC_C_LANGUAGE_STANDARD = gnu99;
  463 + GCC_DYNAMIC_NO_PIC = NO;
  464 + GCC_NO_COMMON_BLOCKS = YES;
  465 + GCC_OPTIMIZATION_LEVEL = 0;
  466 + GCC_PREPROCESSOR_DEFINITIONS = (
  467 + "DEBUG=1",
  468 + "$(inherited)",
  469 + );
  470 + GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
  471 + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
  472 + GCC_WARN_UNDECLARED_SELECTOR = YES;
  473 + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
  474 + GCC_WARN_UNUSED_FUNCTION = YES;
  475 + GCC_WARN_UNUSED_VARIABLE = YES;
  476 + IPHONEOS_DEPLOYMENT_TARGET = 12.0;
  477 + MTL_ENABLE_DEBUG_INFO = YES;
  478 + ONLY_ACTIVE_ARCH = YES;
  479 + SDKROOT = iphoneos;
  480 + TARGETED_DEVICE_FAMILY = "1,2";
  481 + };
  482 + name = Debug;
  483 + };
  484 + 97C147041CF9000F007C117D /* Release */ = {
  485 + isa = XCBuildConfiguration;
  486 + buildSettings = {
  487 + ALWAYS_SEARCH_USER_PATHS = NO;
  488 + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
  489 + CLANG_ANALYZER_NONNULL = YES;
  490 + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
  491 + CLANG_CXX_LIBRARY = "libc++";
  492 + CLANG_ENABLE_MODULES = YES;
  493 + CLANG_ENABLE_OBJC_ARC = YES;
  494 + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
  495 + CLANG_WARN_BOOL_CONVERSION = YES;
  496 + CLANG_WARN_COMMA = YES;
  497 + CLANG_WARN_CONSTANT_CONVERSION = YES;
  498 + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
  499 + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
  500 + CLANG_WARN_EMPTY_BODY = YES;
  501 + CLANG_WARN_ENUM_CONVERSION = YES;
  502 + CLANG_WARN_INFINITE_RECURSION = YES;
  503 + CLANG_WARN_INT_CONVERSION = YES;
  504 + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
  505 + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
  506 + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
  507 + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
  508 + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
  509 + CLANG_WARN_STRICT_PROTOTYPES = YES;
  510 + CLANG_WARN_SUSPICIOUS_MOVE = YES;
  511 + CLANG_WARN_UNREACHABLE_CODE = YES;
  512 + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
  513 + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
  514 + COPY_PHASE_STRIP = NO;
  515 + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
  516 + ENABLE_NS_ASSERTIONS = NO;
  517 + ENABLE_STRICT_OBJC_MSGSEND = YES;
  518 + ENABLE_USER_SCRIPT_SANDBOXING = NO;
  519 + GCC_C_LANGUAGE_STANDARD = gnu99;
  520 + GCC_NO_COMMON_BLOCKS = YES;
  521 + GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
  522 + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
  523 + GCC_WARN_UNDECLARED_SELECTOR = YES;
  524 + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
  525 + GCC_WARN_UNUSED_FUNCTION = YES;
  526 + GCC_WARN_UNUSED_VARIABLE = YES;
  527 + IPHONEOS_DEPLOYMENT_TARGET = 12.0;
  528 + MTL_ENABLE_DEBUG_INFO = NO;
  529 + SDKROOT = iphoneos;
  530 + SUPPORTED_PLATFORMS = iphoneos;
  531 + SWIFT_COMPILATION_MODE = wholemodule;
  532 + SWIFT_OPTIMIZATION_LEVEL = "-O";
  533 + TARGETED_DEVICE_FAMILY = "1,2";
  534 + VALIDATE_PRODUCT = YES;
  535 + };
  536 + name = Release;
  537 + };
  538 + 97C147061CF9000F007C117D /* Debug */ = {
  539 + isa = XCBuildConfiguration;
  540 + baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
  541 + buildSettings = {
  542 + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
  543 + CLANG_ENABLE_MODULES = YES;
  544 + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
  545 + DEVELOPMENT_TEAM = N5ZH3Z63A6;
  546 + ENABLE_BITCODE = NO;
  547 + INFOPLIST_FILE = Runner/Info.plist;
  548 + LD_RUNPATH_SEARCH_PATHS = (
  549 + "$(inherited)",
  550 + "@executable_path/Frameworks",
  551 + );
  552 + PRODUCT_BUNDLE_IDENTIFIER = com.k2fsa.sherpa.onnx.tts;
  553 + PRODUCT_NAME = "$(TARGET_NAME)";
  554 + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
  555 + SWIFT_OPTIMIZATION_LEVEL = "-Onone";
  556 + SWIFT_VERSION = 5.0;
  557 + VERSIONING_SYSTEM = "apple-generic";
  558 + };
  559 + name = Debug;
  560 + };
  561 + 97C147071CF9000F007C117D /* Release */ = {
  562 + isa = XCBuildConfiguration;
  563 + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
  564 + buildSettings = {
  565 + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
  566 + CLANG_ENABLE_MODULES = YES;
  567 + CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
  568 + DEVELOPMENT_TEAM = N5ZH3Z63A6;
  569 + ENABLE_BITCODE = NO;
  570 + INFOPLIST_FILE = Runner/Info.plist;
  571 + LD_RUNPATH_SEARCH_PATHS = (
  572 + "$(inherited)",
  573 + "@executable_path/Frameworks",
  574 + );
  575 + PRODUCT_BUNDLE_IDENTIFIER = com.k2fsa.sherpa.onnx.tts;
  576 + PRODUCT_NAME = "$(TARGET_NAME)";
  577 + SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h";
  578 + SWIFT_VERSION = 5.0;
  579 + VERSIONING_SYSTEM = "apple-generic";
  580 + };
  581 + name = Release;
  582 + };
  583 +/* End XCBuildConfiguration section */
  584 +
  585 +/* Begin XCConfigurationList section */
  586 + 331C8087294A63A400263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */ = {
  587 + isa = XCConfigurationList;
  588 + buildConfigurations = (
  589 + 331C8088294A63A400263BE5 /* Debug */,
  590 + 331C8089294A63A400263BE5 /* Release */,
  591 + 331C808A294A63A400263BE5 /* Profile */,
  592 + );
  593 + defaultConfigurationIsVisible = 0;
  594 + defaultConfigurationName = Release;
  595 + };
  596 + 97C146E91CF9000F007C117D /* Build configuration list for PBXProject "Runner" */ = {
  597 + isa = XCConfigurationList;
  598 + buildConfigurations = (
  599 + 97C147031CF9000F007C117D /* Debug */,
  600 + 97C147041CF9000F007C117D /* Release */,
  601 + 249021D3217E4FDB00AE95B9 /* Profile */,
  602 + );
  603 + defaultConfigurationIsVisible = 0;
  604 + defaultConfigurationName = Release;
  605 + };
  606 + 97C147051CF9000F007C117D /* Build configuration list for PBXNativeTarget "Runner" */ = {
  607 + isa = XCConfigurationList;
  608 + buildConfigurations = (
  609 + 97C147061CF9000F007C117D /* Debug */,
  610 + 97C147071CF9000F007C117D /* Release */,
  611 + 249021D4217E4FDB00AE95B9 /* Profile */,
  612 + );
  613 + defaultConfigurationIsVisible = 0;
  614 + defaultConfigurationName = Release;
  615 + };
  616 +/* End XCConfigurationList section */
  617 + };
  618 + rootObject = 97C146E61CF9000F007C117D /* Project object */;
  619 +}
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<Workspace
  3 + version = "1.0">
  4 + <FileRef
  5 + location = "self:">
  6 + </FileRef>
  7 +</Workspace>
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3 +<plist version="1.0">
  4 +<dict>
  5 + <key>IDEDidComputeMac32BitWarning</key>
  6 + <true/>
  7 +</dict>
  8 +</plist>
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3 +<plist version="1.0">
  4 +<dict>
  5 + <key>PreviewsEnabled</key>
  6 + <false/>
  7 +</dict>
  8 +</plist>
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<Scheme
  3 + LastUpgradeVersion = "1510"
  4 + version = "1.3">
  5 + <BuildAction
  6 + parallelizeBuildables = "YES"
  7 + buildImplicitDependencies = "YES">
  8 + <BuildActionEntries>
  9 + <BuildActionEntry
  10 + buildForTesting = "YES"
  11 + buildForRunning = "YES"
  12 + buildForProfiling = "YES"
  13 + buildForArchiving = "YES"
  14 + buildForAnalyzing = "YES">
  15 + <BuildableReference
  16 + BuildableIdentifier = "primary"
  17 + BlueprintIdentifier = "97C146ED1CF9000F007C117D"
  18 + BuildableName = "Runner.app"
  19 + BlueprintName = "Runner"
  20 + ReferencedContainer = "container:Runner.xcodeproj">
  21 + </BuildableReference>
  22 + </BuildActionEntry>
  23 + </BuildActionEntries>
  24 + </BuildAction>
  25 + <TestAction
  26 + buildConfiguration = "Debug"
  27 + selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
  28 + selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
  29 + shouldUseLaunchSchemeArgsEnv = "YES">
  30 + <MacroExpansion>
  31 + <BuildableReference
  32 + BuildableIdentifier = "primary"
  33 + BlueprintIdentifier = "97C146ED1CF9000F007C117D"
  34 + BuildableName = "Runner.app"
  35 + BlueprintName = "Runner"
  36 + ReferencedContainer = "container:Runner.xcodeproj">
  37 + </BuildableReference>
  38 + </MacroExpansion>
  39 + <Testables>
  40 + <TestableReference
  41 + skipped = "NO"
  42 + parallelizable = "YES">
  43 + <BuildableReference
  44 + BuildableIdentifier = "primary"
  45 + BlueprintIdentifier = "331C8080294A63A400263BE5"
  46 + BuildableName = "RunnerTests.xctest"
  47 + BlueprintName = "RunnerTests"
  48 + ReferencedContainer = "container:Runner.xcodeproj">
  49 + </BuildableReference>
  50 + </TestableReference>
  51 + </Testables>
  52 + </TestAction>
  53 + <LaunchAction
  54 + buildConfiguration = "Debug"
  55 + selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
  56 + selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
  57 + launchStyle = "0"
  58 + useCustomWorkingDirectory = "NO"
  59 + ignoresPersistentStateOnLaunch = "NO"
  60 + debugDocumentVersioning = "YES"
  61 + debugServiceExtension = "internal"
  62 + allowLocationSimulation = "YES">
  63 + <BuildableProductRunnable
  64 + runnableDebuggingMode = "0">
  65 + <BuildableReference
  66 + BuildableIdentifier = "primary"
  67 + BlueprintIdentifier = "97C146ED1CF9000F007C117D"
  68 + BuildableName = "Runner.app"
  69 + BlueprintName = "Runner"
  70 + ReferencedContainer = "container:Runner.xcodeproj">
  71 + </BuildableReference>
  72 + </BuildableProductRunnable>
  73 + </LaunchAction>
  74 + <ProfileAction
  75 + buildConfiguration = "Profile"
  76 + shouldUseLaunchSchemeArgsEnv = "YES"
  77 + savedToolIdentifier = ""
  78 + useCustomWorkingDirectory = "NO"
  79 + debugDocumentVersioning = "YES">
  80 + <BuildableProductRunnable
  81 + runnableDebuggingMode = "0">
  82 + <BuildableReference
  83 + BuildableIdentifier = "primary"
  84 + BlueprintIdentifier = "97C146ED1CF9000F007C117D"
  85 + BuildableName = "Runner.app"
  86 + BlueprintName = "Runner"
  87 + ReferencedContainer = "container:Runner.xcodeproj">
  88 + </BuildableReference>
  89 + </BuildableProductRunnable>
  90 + </ProfileAction>
  91 + <AnalyzeAction
  92 + buildConfiguration = "Debug">
  93 + </AnalyzeAction>
  94 + <ArchiveAction
  95 + buildConfiguration = "Release"
  96 + revealArchiveInOrganizer = "YES">
  97 + </ArchiveAction>
  98 +</Scheme>
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<Workspace
  3 + version = "1.0">
  4 + <FileRef
  5 + location = "group:Runner.xcodeproj">
  6 + </FileRef>
  7 +</Workspace>
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3 +<plist version="1.0">
  4 +<dict>
  5 + <key>IDEDidComputeMac32BitWarning</key>
  6 + <true/>
  7 +</dict>
  8 +</plist>
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3 +<plist version="1.0">
  4 +<dict>
  5 + <key>PreviewsEnabled</key>
  6 + <false/>
  7 +</dict>
  8 +</plist>
  1 +import Flutter
  2 +import UIKit
  3 +
  4 +@UIApplicationMain
  5 +@objc class AppDelegate: FlutterAppDelegate {
  6 + override func application(
  7 + _ application: UIApplication,
  8 + didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
  9 + ) -> Bool {
  10 + GeneratedPluginRegistrant.register(with: self)
  11 + return super.application(application, didFinishLaunchingWithOptions: launchOptions)
  12 + }
  13 +}
  1 +{
  2 + "images" : [
  3 + {
  4 + "size" : "20x20",
  5 + "idiom" : "iphone",
  6 + "filename" : "Icon-App-20x20@2x.png",
  7 + "scale" : "2x"
  8 + },
  9 + {
  10 + "size" : "20x20",
  11 + "idiom" : "iphone",
  12 + "filename" : "Icon-App-20x20@3x.png",
  13 + "scale" : "3x"
  14 + },
  15 + {
  16 + "size" : "29x29",
  17 + "idiom" : "iphone",
  18 + "filename" : "Icon-App-29x29@1x.png",
  19 + "scale" : "1x"
  20 + },
  21 + {
  22 + "size" : "29x29",
  23 + "idiom" : "iphone",
  24 + "filename" : "Icon-App-29x29@2x.png",
  25 + "scale" : "2x"
  26 + },
  27 + {
  28 + "size" : "29x29",
  29 + "idiom" : "iphone",
  30 + "filename" : "Icon-App-29x29@3x.png",
  31 + "scale" : "3x"
  32 + },
  33 + {
  34 + "size" : "40x40",
  35 + "idiom" : "iphone",
  36 + "filename" : "Icon-App-40x40@2x.png",
  37 + "scale" : "2x"
  38 + },
  39 + {
  40 + "size" : "40x40",
  41 + "idiom" : "iphone",
  42 + "filename" : "Icon-App-40x40@3x.png",
  43 + "scale" : "3x"
  44 + },
  45 + {
  46 + "size" : "60x60",
  47 + "idiom" : "iphone",
  48 + "filename" : "Icon-App-60x60@2x.png",
  49 + "scale" : "2x"
  50 + },
  51 + {
  52 + "size" : "60x60",
  53 + "idiom" : "iphone",
  54 + "filename" : "Icon-App-60x60@3x.png",
  55 + "scale" : "3x"
  56 + },
  57 + {
  58 + "size" : "20x20",
  59 + "idiom" : "ipad",
  60 + "filename" : "Icon-App-20x20@1x.png",
  61 + "scale" : "1x"
  62 + },
  63 + {
  64 + "size" : "20x20",
  65 + "idiom" : "ipad",
  66 + "filename" : "Icon-App-20x20@2x.png",
  67 + "scale" : "2x"
  68 + },
  69 + {
  70 + "size" : "29x29",
  71 + "idiom" : "ipad",
  72 + "filename" : "Icon-App-29x29@1x.png",
  73 + "scale" : "1x"
  74 + },
  75 + {
  76 + "size" : "29x29",
  77 + "idiom" : "ipad",
  78 + "filename" : "Icon-App-29x29@2x.png",
  79 + "scale" : "2x"
  80 + },
  81 + {
  82 + "size" : "40x40",
  83 + "idiom" : "ipad",
  84 + "filename" : "Icon-App-40x40@1x.png",
  85 + "scale" : "1x"
  86 + },
  87 + {
  88 + "size" : "40x40",
  89 + "idiom" : "ipad",
  90 + "filename" : "Icon-App-40x40@2x.png",
  91 + "scale" : "2x"
  92 + },
  93 + {
  94 + "size" : "76x76",
  95 + "idiom" : "ipad",
  96 + "filename" : "Icon-App-76x76@1x.png",
  97 + "scale" : "1x"
  98 + },
  99 + {
  100 + "size" : "76x76",
  101 + "idiom" : "ipad",
  102 + "filename" : "Icon-App-76x76@2x.png",
  103 + "scale" : "2x"
  104 + },
  105 + {
  106 + "size" : "83.5x83.5",
  107 + "idiom" : "ipad",
  108 + "filename" : "Icon-App-83.5x83.5@2x.png",
  109 + "scale" : "2x"
  110 + },
  111 + {
  112 + "size" : "1024x1024",
  113 + "idiom" : "ios-marketing",
  114 + "filename" : "Icon-App-1024x1024@1x.png",
  115 + "scale" : "1x"
  116 + }
  117 + ],
  118 + "info" : {
  119 + "version" : 1,
  120 + "author" : "xcode"
  121 + }
  122 +}
  1 +{
  2 + "images" : [
  3 + {
  4 + "idiom" : "universal",
  5 + "filename" : "LaunchImage.png",
  6 + "scale" : "1x"
  7 + },
  8 + {
  9 + "idiom" : "universal",
  10 + "filename" : "LaunchImage@2x.png",
  11 + "scale" : "2x"
  12 + },
  13 + {
  14 + "idiom" : "universal",
  15 + "filename" : "LaunchImage@3x.png",
  16 + "scale" : "3x"
  17 + }
  18 + ],
  19 + "info" : {
  20 + "version" : 1,
  21 + "author" : "xcode"
  22 + }
  23 +}
  1 +# Launch Screen Assets
  2 +
  3 +You can customize the launch screen with your own desired assets by replacing the image files in this directory.
  4 +
  5 +You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images.
  1 +<?xml version="1.0" encoding="UTF-8" standalone="no"?>
  2 +<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="12121" systemVersion="16G29" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
  3 + <dependencies>
  4 + <deployment identifier="iOS"/>
  5 + <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12089"/>
  6 + </dependencies>
  7 + <scenes>
  8 + <!--View Controller-->
  9 + <scene sceneID="EHf-IW-A2E">
  10 + <objects>
  11 + <viewController id="01J-lp-oVM" sceneMemberID="viewController">
  12 + <layoutGuides>
  13 + <viewControllerLayoutGuide type="top" id="Ydg-fD-yQy"/>
  14 + <viewControllerLayoutGuide type="bottom" id="xbc-2k-c8Z"/>
  15 + </layoutGuides>
  16 + <view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
  17 + <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
  18 + <subviews>
  19 + <imageView opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" image="LaunchImage" translatesAutoresizingMaskIntoConstraints="NO" id="YRO-k0-Ey4">
  20 + </imageView>
  21 + </subviews>
  22 + <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
  23 + <constraints>
  24 + <constraint firstItem="YRO-k0-Ey4" firstAttribute="centerX" secondItem="Ze5-6b-2t3" secondAttribute="centerX" id="1a2-6s-vTC"/>
  25 + <constraint firstItem="YRO-k0-Ey4" firstAttribute="centerY" secondItem="Ze5-6b-2t3" secondAttribute="centerY" id="4X2-HB-R7a"/>
  26 + </constraints>
  27 + </view>
  28 + </viewController>
  29 + <placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
  30 + </objects>
  31 + <point key="canvasLocation" x="53" y="375"/>
  32 + </scene>
  33 + </scenes>
  34 + <resources>
  35 + <image name="LaunchImage" width="168" height="185"/>
  36 + </resources>
  37 +</document>
  1 +<?xml version="1.0" encoding="UTF-8" standalone="no"?>
  2 +<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="10117" systemVersion="15F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="BYZ-38-t0r">
  3 + <dependencies>
  4 + <deployment identifier="iOS"/>
  5 + <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="10085"/>
  6 + </dependencies>
  7 + <scenes>
  8 + <!--Flutter View Controller-->
  9 + <scene sceneID="tne-QT-ifu">
  10 + <objects>
  11 + <viewController id="BYZ-38-t0r" customClass="FlutterViewController" sceneMemberID="viewController">
  12 + <layoutGuides>
  13 + <viewControllerLayoutGuide type="top" id="y3c-jy-aDJ"/>
  14 + <viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/>
  15 + </layoutGuides>
  16 + <view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
  17 + <rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
  18 + <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
  19 + <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
  20 + </view>
  21 + </viewController>
  22 + <placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
  23 + </objects>
  24 + </scene>
  25 + </scenes>
  26 +</document>
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3 +<plist version="1.0">
  4 +<dict>
  5 + <key>CFBundleDevelopmentRegion</key>
  6 + <string>$(DEVELOPMENT_LANGUAGE)</string>
  7 + <key>CFBundleDisplayName</key>
  8 + <string>Tts</string>
  9 + <key>CFBundleExecutable</key>
  10 + <string>$(EXECUTABLE_NAME)</string>
  11 + <key>CFBundleIdentifier</key>
  12 + <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
  13 + <key>CFBundleInfoDictionaryVersion</key>
  14 + <string>6.0</string>
  15 + <key>CFBundleName</key>
  16 + <string>tts</string>
  17 + <key>CFBundlePackageType</key>
  18 + <string>APPL</string>
  19 + <key>CFBundleShortVersionString</key>
  20 + <string>$(FLUTTER_BUILD_NAME)</string>
  21 + <key>CFBundleSignature</key>
  22 + <string>????</string>
  23 + <key>CFBundleVersion</key>
  24 + <string>$(FLUTTER_BUILD_NUMBER)</string>
  25 + <key>LSRequiresIPhoneOS</key>
  26 + <true/>
  27 + <key>UILaunchStoryboardName</key>
  28 + <string>LaunchScreen</string>
  29 + <key>UIMainStoryboardFile</key>
  30 + <string>Main</string>
  31 + <key>UISupportedInterfaceOrientations</key>
  32 + <array>
  33 + <string>UIInterfaceOrientationPortrait</string>
  34 + <string>UIInterfaceOrientationLandscapeLeft</string>
  35 + <string>UIInterfaceOrientationLandscapeRight</string>
  36 + </array>
  37 + <key>UISupportedInterfaceOrientations~ipad</key>
  38 + <array>
  39 + <string>UIInterfaceOrientationPortrait</string>
  40 + <string>UIInterfaceOrientationPortraitUpsideDown</string>
  41 + <string>UIInterfaceOrientationLandscapeLeft</string>
  42 + <string>UIInterfaceOrientationLandscapeRight</string>
  43 + </array>
  44 + <key>CADisableMinimumFrameDurationOnPhone</key>
  45 + <true/>
  46 + <key>UIApplicationSupportsIndirectInputEvents</key>
  47 + <true/>
  48 +</dict>
  49 +</plist>
  1 +#import "GeneratedPluginRegistrant.h"
  1 +import Flutter
  2 +import UIKit
  3 +import XCTest
  4 +
  5 +class RunnerTests: XCTestCase {
  6 +
  7 + func testExample() {
  8 + // If you add code to the Runner application, consider adding tests here.
  9 + // See https://developer.apple.com/documentation/xctest for more information about using XCTest.
  10 + }
  11 +
  12 +}
  1 +// Copyright (c) 2024 Xiaomi Corporation
  2 +import 'package:flutter/material.dart';
  3 +import 'package:url_launcher/url_launcher.dart';
  4 +
  5 +class InfoScreen extends StatelessWidget {
  6 + @override
  7 + Widget build(BuildContext context) {
  8 + const double height = 20;
  9 + return Container(
  10 + child: Padding(
  11 + padding: const EdgeInsets.all(8.0),
  12 + child: Column(
  13 + crossAxisAlignment: CrossAxisAlignment.start,
  14 + children: <Widget>[
  15 + Text('Everything is open-sourced.'),
  16 + SizedBox(height: height),
  17 + InkWell(
  18 + child: Text('Code: https://github.com/k2-fsa/sherpa-onnx'),
  19 + onTap: () => launch('https://k2-fsa.github.io/sherpa/onnx/'),
  20 + ),
  21 + SizedBox(height: height),
  22 + InkWell(
  23 + child: Text('Doc: https://k2-fsa.github.io/sherpa/onnx/'),
  24 + onTap: () => launch('https://k2-fsa.github.io/sherpa/onnx/'),
  25 + ),
  26 + SizedBox(height: height),
  27 + Text('QQ 群: 744602236'),
  28 + SizedBox(height: height),
  29 + InkWell(
  30 + child: Text(
  31 + '微信群: https://k2-fsa.github.io/sherpa/social-groups.html'),
  32 + onTap: () =>
  33 + launch('https://k2-fsa.github.io/sherpa/social-groups.html'),
  34 + ),
  35 + ],
  36 + ),
  37 + ),
  38 + );
  39 + }
  40 +}
  1 +// Copyright (c) 2024 Xiaomi Corporation
  2 +import 'package:flutter/material.dart';
  3 +
  4 +import './tts.dart';
  5 +import './info.dart';
  6 +
  7 +void main() {
  8 + runApp(const MyApp());
  9 +}
  10 +
  11 +class MyApp extends StatelessWidget {
  12 + const MyApp({super.key});
  13 +
  14 + @override
  15 + Widget build(BuildContext context) {
  16 + return MaterialApp(
  17 + title: 'Next-gen Kaldi flutter demo',
  18 + theme: ThemeData(
  19 + colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
  20 + useMaterial3: true,
  21 + ),
  22 + home: const MyHomePage(title: 'Next-gen Kaldi with Flutter'),
  23 + );
  24 + }
  25 +}
  26 +
  27 +class MyHomePage extends StatefulWidget {
  28 + const MyHomePage({super.key, required this.title});
  29 +
  30 + final String title;
  31 +
  32 + @override
  33 + State<MyHomePage> createState() => _MyHomePageState();
  34 +}
  35 +
  36 +class _MyHomePageState extends State<MyHomePage> {
  37 + int _currentIndex = 0;
  38 + final List<Widget> _tabs = [
  39 + TtsScreen(),
  40 + InfoScreen(),
  41 + ];
  42 + @override
  43 + Widget build(BuildContext context) {
  44 + return Scaffold(
  45 + appBar: AppBar(
  46 + title: Text(widget.title),
  47 + ),
  48 + body: _tabs[_currentIndex],
  49 + bottomNavigationBar: BottomNavigationBar(
  50 + currentIndex: _currentIndex,
  51 + onTap: (int index) {
  52 + setState(() {
  53 + _currentIndex = index;
  54 + });
  55 + },
  56 + items: [
  57 + BottomNavigationBarItem(
  58 + icon: Icon(Icons.home),
  59 + label: 'Home',
  60 + ),
  61 + BottomNavigationBarItem(
  62 + icon: Icon(Icons.info),
  63 + label: 'Info',
  64 + ),
  65 + ],
  66 + ),
  67 + );
  68 + }
  69 +}
  1 +// Copyright (c) 2024 Xiaomi Corporation
  2 +
  3 +import "dart:io";
  4 +
  5 +import 'package:flutter/services.dart';
  6 +import 'package:path_provider/path_provider.dart';
  7 +import 'package:path/path.dart' as p;
  8 +import 'package:sherpa_onnx/sherpa_onnx.dart' as sherpa_onnx;
  9 +
  10 +import './utils.dart';
  11 +
  12 +Future<sherpa_onnx.OfflineTts> createOfflineTts() async {
  13 + // sherpa_onnx requires that model files are in the local disk, so we
  14 + // need to copy all asset files to disk.
  15 + await copyAllAssetFiles();
  16 +
  17 + sherpa_onnx.initBindings();
  18 +
  19 + // Such a design is to make it easier to build flutter APPs with
  20 + // github actions for a variety of tts models
  21 + //
  22 + // See https://github.com/k2-fsa/sherpa-onnx/blob/master/scripts/flutter/generate-tts.py
  23 + // for details
  24 +
  25 + String modelDir = '';
  26 + String modelName = '';
  27 + String ruleFsts = '';
  28 + String ruleFars = '';
  29 + String lexicon = '';
  30 + String dataDir = '';
  31 + String dictDir = '';
  32 +
  33 + // You can select an example below and change it according to match your
  34 + // selected tts model
  35 +
  36 + // ============================================================
  37 + // Your change starts here
  38 + // ============================================================
  39 +
  40 + // Example 1:
  41 + // modelDir = 'vits-vctk';
  42 + // modelName = 'vits-vctk.onnx';
  43 + // lexicon = 'lexicon.txt';
  44 +
  45 + // Example 2:
  46 + // https://github.com/k2-fsa/sherpa-onnx/releases/tag/tts-models
  47 + // https://github.com/k2-fsa/sherpa-onnx/releases/download/tts-models/vits-piper-en_US-amy-low.tar.bz2
  48 + // modelDir = 'vits-piper-en_US-amy-low';
  49 + // modelName = 'en_US-amy-low.onnx';
  50 + // dataDir = 'vits-piper-en_US-amy-low/espeak-ng-data';
  51 +
  52 + // Example 3:
  53 + // https://github.com/k2-fsa/sherpa-onnx/releases/download/tts-models/vits-icefall-zh-aishell3.tar.bz2
  54 + // modelDir = 'vits-icefall-zh-aishell3';
  55 + // modelName = 'model.onnx';
  56 + // ruleFsts = 'vits-icefall-zh-aishell3/phone.fst,vits-icefall-zh-aishell3/date.fst,vits-icefall-zh-aishell3/number.fst,vits-icefall-zh-aishell3/new_heteronym.fst';
  57 + // ruleFars = 'vits-icefall-zh-aishell3/rule.far';
  58 + // lexicon = 'lexicon.txt';
  59 +
  60 + // Example 4:
  61 + // https://k2-fsa.github.io/sherpa/onnx/tts/pretrained_models/vits.html#csukuangfj-vits-zh-hf-fanchen-c-chinese-187-speakers
  62 + // modelDir = 'vits-zh-hf-fanchen-C';
  63 + // modelName = 'vits-zh-hf-fanchen-C.onnx';
  64 + // lexicon = 'lexicon.txt';
  65 + // dictDir = 'vits-zh-hf-fanchen-C/dict';
  66 +
  67 + // Example 5:
  68 + // https://github.com/k2-fsa/sherpa-onnx/releases/download/tts-models/vits-coqui-de-css10.tar.bz2
  69 + // modelDir = 'vits-coqui-de-css10';
  70 + // modelName = 'model.onnx';
  71 +
  72 + // Example 6
  73 + // https://github.com/k2-fsa/sherpa-onnx/releases/tag/tts-models
  74 + // https://github.com/k2-fsa/sherpa-onnx/releases/download/tts-models/vits-piper-en_US-libritts_r-medium.tar.bz2
  75 + // modelDir = 'vits-piper-en_US-libritts_r-medium';
  76 + // modelName = 'en_US-libritts_r-medium.onnx';
  77 + // dataDir = 'vits-piper-en_US-libritts_r-medium/espeak-ng-data';
  78 +
  79 + // ============================================================
  80 + // Please don't change the remaining part of this function
  81 + // ============================================================
  82 + if (modelName == '') {
  83 + throw Exception(
  84 + 'You are supposed to select a model by changing the code before you run the app');
  85 + }
  86 +
  87 + final Directory directory = await getApplicationDocumentsDirectory();
  88 + modelName = p.join(directory.path, modelDir, modelName);
  89 +
  90 + if (ruleFsts != '') {
  91 + final all = ruleFsts.split(',');
  92 + var tmp = <String>[];
  93 + for (final f in all) {
  94 + tmp.add(p.join(directory.path, modelDir, f));
  95 + }
  96 + ruleFsts = tmp.join(',');
  97 + }
  98 +
  99 + if (ruleFars != '') {
  100 + final all = ruleFars.split(',');
  101 + var tmp = <String>[];
  102 + for (final f in all) {
  103 + tmp.add(p.join(directory.path, f));
  104 + }
  105 + ruleFars = tmp.join(',');
  106 + }
  107 +
  108 + if (lexicon != '') {
  109 + lexicon = p.join(directory.path, lexicon);
  110 + }
  111 +
  112 + if (dataDir != '') {
  113 + dataDir = p.join(directory.path, dataDir);
  114 + }
  115 +
  116 + if (dictDir != '') {
  117 + dictDir = p.join(directory.path, dictDir);
  118 + }
  119 +
  120 + final tokens = p.join(directory.path, modelDir, 'tokens.txt');
  121 +
  122 + final vits = sherpa_onnx.OfflineTtsVitsModelConfig(
  123 + model: modelName,
  124 + lexicon: lexicon,
  125 + tokens: tokens,
  126 + dataDir: dataDir,
  127 + dictDir: dictDir,
  128 + );
  129 +
  130 + final modelConfig = sherpa_onnx.OfflineTtsModelConfig(
  131 + vits: vits,
  132 + numThreads: 2,
  133 + debug: true,
  134 + provider: 'cpu',
  135 + );
  136 +
  137 + final config = sherpa_onnx.OfflineTtsConfig(
  138 + model: modelConfig,
  139 + ruleFsts: ruleFsts,
  140 + ruleFars: ruleFars,
  141 + maxNumSenetences: 1,
  142 + );
  143 + // print(config);
  144 +
  145 + final tts = sherpa_onnx.OfflineTts(config);
  146 + print('tts created successfully');
  147 +
  148 + return tts;
  149 +}
  1 +// Copyright (c) 2024 Xiaomi Corporation
  2 +import 'dart:async';
  3 +
  4 +import 'package:flutter/foundation.dart';
  5 +import 'package:flutter/services.dart';
  6 +
  7 +import 'package:flutter/material.dart';
  8 +
  9 +import 'package:audioplayers/audioplayers.dart';
  10 +import 'package:sherpa_onnx/sherpa_onnx.dart' as sherpa_onnx;
  11 +
  12 +import './model.dart';
  13 +import './utils.dart';
  14 +
  15 +class TtsScreen extends StatefulWidget {
  16 + const TtsScreen({super.key});
  17 +
  18 + @override
  19 + State<TtsScreen> createState() => _TtsScreenState();
  20 +}
  21 +
  22 +class _TtsScreenState extends State<TtsScreen> {
  23 + late final TextEditingController _controller_text_input;
  24 + late final TextEditingController _controller_sid;
  25 + late final TextEditingController _controller_hint;
  26 + late final AudioPlayer _player;
  27 + String _title = 'Text to speech';
  28 + String _lastFilename = '';
  29 + bool _isInitialized = false;
  30 + int _maxSpeakerID = 0;
  31 + double _speed = 1.0;
  32 +
  33 + sherpa_onnx.OfflineTts? _tts;
  34 +
  35 + @override
  36 + void initState() {
  37 + _controller_text_input = TextEditingController();
  38 + _controller_hint = TextEditingController();
  39 + _controller_sid = TextEditingController(text: '0');
  40 + super.initState();
  41 + }
  42 +
  43 + Future<void> _init() async {
  44 + if (!_isInitialized) {
  45 + sherpa_onnx.initBindings();
  46 +
  47 + _tts?.free();
  48 + _tts = await createOfflineTts();
  49 +
  50 + _player = AudioPlayer();
  51 +
  52 + _isInitialized = true;
  53 + }
  54 + }
  55 +
  56 + @override
  57 + Widget build(BuildContext context) {
  58 + return MaterialApp(
  59 + home: Scaffold(
  60 + appBar: AppBar(
  61 + title: Text(_title),
  62 + ),
  63 + body: Padding(
  64 + padding: EdgeInsets.all(10),
  65 + child: Column(
  66 + // mainAxisAlignment: MainAxisAlignment.center,
  67 + children: <Widget>[
  68 + TextField(
  69 + decoration: InputDecoration(
  70 + labelText: "Speaker ID (0-$_maxSpeakerID)",
  71 + hintText: 'Please input your speaker ID',
  72 + ),
  73 + keyboardType: TextInputType.number,
  74 + maxLines: 1,
  75 + controller: _controller_sid,
  76 + inputFormatters: <TextInputFormatter>[
  77 + FilteringTextInputFormatter.digitsOnly
  78 + ]),
  79 + Slider(
  80 + // decoration: InputDecoration(
  81 + // labelText: "speech speed",
  82 + // ),
  83 + label: "Speech speed ${_speed.toStringAsPrecision(2)}",
  84 + min: 0.5,
  85 + max: 3.0,
  86 + divisions: 25,
  87 + value: _speed,
  88 + onChanged: (value) {
  89 + setState(() {
  90 + _speed = value;
  91 + });
  92 + },
  93 + ),
  94 + const SizedBox(height: 5),
  95 + TextField(
  96 + decoration: InputDecoration(
  97 + border: OutlineInputBorder(),
  98 + hintText: 'Please enter your text here',
  99 + ),
  100 + maxLines: 5,
  101 + controller: _controller_text_input,
  102 + ),
  103 + const SizedBox(height: 5),
  104 + Row(
  105 + mainAxisAlignment: MainAxisAlignment.center,
  106 + children: <Widget>[
  107 + OutlinedButton(
  108 + child: Text("Generate"),
  109 + onPressed: () async {
  110 + await _init();
  111 + await _player?.stop();
  112 +
  113 + setState(() {
  114 + _maxSpeakerID = _tts?.numSpeakers ?? 0;
  115 + if (_maxSpeakerID > 0) {
  116 + _maxSpeakerID -= 1;
  117 + }
  118 + });
  119 +
  120 + if (_tts == null) {
  121 + _controller_hint.value = TextEditingValue(
  122 + text: 'Failed to initialize tts',
  123 + );
  124 + return;
  125 + }
  126 +
  127 + _controller_hint.value = TextEditingValue(
  128 + text: '',
  129 + );
  130 +
  131 + final text = _controller_text_input.text.trim();
  132 + if (text == '') {
  133 + _controller_hint.value = TextEditingValue(
  134 + text: 'Please first input your text to generate',
  135 + );
  136 + return;
  137 + }
  138 +
  139 + final sid =
  140 + int.tryParse(_controller_sid.text.trim()) ?? 0;
  141 +
  142 + final stopwatch = Stopwatch();
  143 + stopwatch.start();
  144 + final audio =
  145 + _tts!.generate(text: text, sid: sid, speed: _speed);
  146 + final suffix =
  147 + '-sid-$sid-speed-${_speed.toStringAsPrecision(2)}';
  148 + final filename = await generateWaveFilename(suffix);
  149 +
  150 + final ok = sherpa_onnx.writeWave(
  151 + filename: filename,
  152 + samples: audio.samples,
  153 + sampleRate: audio.sampleRate,
  154 + );
  155 +
  156 + if (ok) {
  157 + stopwatch.stop();
  158 + double elapsed =
  159 + stopwatch.elapsed.inMilliseconds.toDouble();
  160 +
  161 + double waveDuration =
  162 + audio.samples.length.toDouble() /
  163 + audio.sampleRate.toDouble();
  164 +
  165 + _controller_hint.value = TextEditingValue(
  166 + text: 'Saved to\n$filename\n'
  167 + 'Elapsed: ${(elapsed / 1000).toStringAsPrecision(4)} s\n'
  168 + 'Wave duration: ${waveDuration.toStringAsPrecision(4)} s\n'
  169 + 'RTF: ${(elapsed / 1000).toStringAsPrecision(4)}/${waveDuration.toStringAsPrecision(4)} '
  170 + '= ${(elapsed / 1000 / waveDuration).toStringAsPrecision(3)} ',
  171 + );
  172 + _lastFilename = filename;
  173 +
  174 + await _player?.play(DeviceFileSource(_lastFilename));
  175 + } else {
  176 + _controller_hint.value = TextEditingValue(
  177 + text: 'Failed to save generated audio',
  178 + );
  179 + }
  180 + },
  181 + ),
  182 + const SizedBox(width: 5),
  183 + OutlinedButton(
  184 + child: Text("Clear"),
  185 + onPressed: () {
  186 + _controller_text_input.value = TextEditingValue(
  187 + text: '',
  188 + );
  189 +
  190 + _controller_hint.value = TextEditingValue(
  191 + text: '',
  192 + );
  193 + },
  194 + ),
  195 + const SizedBox(width: 5),
  196 + OutlinedButton(
  197 + child: Text("Play"),
  198 + onPressed: () async {
  199 + if (_lastFilename == '') {
  200 + _controller_hint.value = TextEditingValue(
  201 + text: 'No generated wave file found',
  202 + );
  203 + return;
  204 + }
  205 + await _player?.stop();
  206 + await _player?.play(DeviceFileSource(_lastFilename));
  207 + _controller_hint.value = TextEditingValue(
  208 + text: 'Playing\n$_lastFilename',
  209 + );
  210 + },
  211 + ),
  212 + const SizedBox(width: 5),
  213 + OutlinedButton(
  214 + child: Text("Stop"),
  215 + onPressed: () async {
  216 + await _player?.stop();
  217 + _controller_hint.value = TextEditingValue(
  218 + text: '',
  219 + );
  220 + },
  221 + ),
  222 + ]),
  223 + const SizedBox(height: 5),
  224 + TextField(
  225 + decoration: InputDecoration(
  226 + border: OutlineInputBorder(),
  227 + hintText: 'Logs will be shown here.\n'
  228 + 'The first run is slower due to model initialization.',
  229 + ),
  230 + maxLines: 6,
  231 + controller: _controller_hint,
  232 + readOnly: true,
  233 + ),
  234 + ],
  235 + ),
  236 + ),
  237 + ),
  238 + );
  239 + }
  240 +
  241 + @override
  242 + void dispose() {
  243 + _tts?.free();
  244 + super.dispose();
  245 + }
  246 +}
  1 +// Copyright (c) 2024 Xiaomi Corporation
  2 +import 'dart:io';
  3 +import 'dart:typed_data';
  4 +
  5 +import 'package:flutter/services.dart';
  6 +import 'package:path/path.dart' as p;
  7 +import 'package:path_provider/path_provider.dart';
  8 +
  9 +Future<String> generateWaveFilename([String suffix = '']) async {
  10 + final Directory directory = await getApplicationDocumentsDirectory();
  11 + DateTime now = DateTime.now();
  12 + final filename =
  13 + '${now.year.toString()}-${now.month.toString().padLeft(2, '0')}-${now.day.toString().padLeft(2, '0')}-${now.hour.toString().padLeft(2, '0')}-${now.minute.toString().padLeft(2, '0')}-${now.second.toString().padLeft(2, '0')}$suffix.wav';
  14 +
  15 + return p.join(directory.path, filename);
  16 +}
  17 +
  18 +// https://stackoverflow.com/questions/68862225/flutter-how-to-get-all-files-from-assets-folder-in-one-list
  19 +Future<List<String>> getAllAssetFiles() async {
  20 + final AssetManifest assetManifest =
  21 + await AssetManifest.loadFromAssetBundle(rootBundle);
  22 + final List<String> assets = assetManifest.listAssets();
  23 + return assets;
  24 +}
  25 +
  26 +String stripLeadingDirectory(String src, {int n = 1}) {
  27 + return p.joinAll(p.split(src).sublist(n));
  28 +}
  29 +
  30 +Future<void> copyAllAssetFiles() async {
  31 + final allFiles = await getAllAssetFiles();
  32 + for (final src in allFiles) {
  33 + final dst = stripLeadingDirectory(src);
  34 + await copyAssetFile(src, dst);
  35 + }
  36 +}
  37 +
  38 +// Copy the asset file from src to dst.
  39 +// If dst already exists, then just skip the copy
  40 +Future<String> copyAssetFile(String src, [String? dst]) async {
  41 + final Directory directory = await getApplicationDocumentsDirectory();
  42 + if (dst == null) {
  43 + dst = p.basename(src);
  44 + }
  45 + final target = p.join(directory.path, dst);
  46 + bool exists = await new File(target).exists();
  47 +
  48 + if (!exists) {
  49 + final data = await rootBundle.load(src);
  50 + final List<int> bytes =
  51 + data.buffer.asUint8List(data.offsetInBytes, data.lengthInBytes);
  52 + await (await File(target).create(recursive: true)).writeAsBytes(bytes);
  53 + }
  54 +
  55 + return target;
  56 +}
  1 +# Project-level configuration.
  2 +cmake_minimum_required(VERSION 3.10)
  3 +project(runner LANGUAGES CXX)
  4 +
  5 +# The name of the executable created for the application. Change this to change
  6 +# the on-disk name of your application.
  7 +set(BINARY_NAME "tts")
  8 +# The unique GTK application identifier for this application. See:
  9 +# https://wiki.gnome.org/HowDoI/ChooseApplicationID
  10 +set(APPLICATION_ID "com.k2fsa.sherpa.onnx.tts")
  11 +
  12 +# Explicitly opt in to modern CMake behaviors to avoid warnings with recent
  13 +# versions of CMake.
  14 +cmake_policy(SET CMP0063 NEW)
  15 +
  16 +# Load bundled libraries from the lib/ directory relative to the binary.
  17 +set(CMAKE_INSTALL_RPATH "$ORIGIN/lib")
  18 +
  19 +# Root filesystem for cross-building.
  20 +if(FLUTTER_TARGET_PLATFORM_SYSROOT)
  21 + set(CMAKE_SYSROOT ${FLUTTER_TARGET_PLATFORM_SYSROOT})
  22 + set(CMAKE_FIND_ROOT_PATH ${CMAKE_SYSROOT})
  23 + set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
  24 + set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)
  25 + set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
  26 + set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
  27 +endif()
  28 +
  29 +# Define build configuration options.
  30 +if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
  31 + set(CMAKE_BUILD_TYPE "Debug" CACHE
  32 + STRING "Flutter build mode" FORCE)
  33 + set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS
  34 + "Debug" "Profile" "Release")
  35 +endif()
  36 +
  37 +# Compilation settings that should be applied to most targets.
  38 +#
  39 +# Be cautious about adding new options here, as plugins use this function by
  40 +# default. In most cases, you should add new options to specific targets instead
  41 +# of modifying this function.
  42 +function(APPLY_STANDARD_SETTINGS TARGET)
  43 + target_compile_features(${TARGET} PUBLIC cxx_std_14)
  44 + target_compile_options(${TARGET} PRIVATE -Wall -Werror)
  45 + target_compile_options(${TARGET} PRIVATE "$<$<NOT:$<CONFIG:Debug>>:-O3>")
  46 + target_compile_definitions(${TARGET} PRIVATE "$<$<NOT:$<CONFIG:Debug>>:NDEBUG>")
  47 +endfunction()
  48 +
  49 +# Flutter library and tool build rules.
  50 +set(FLUTTER_MANAGED_DIR "${CMAKE_CURRENT_SOURCE_DIR}/flutter")
  51 +add_subdirectory(${FLUTTER_MANAGED_DIR})
  52 +
  53 +# System-level dependencies.
  54 +find_package(PkgConfig REQUIRED)
  55 +pkg_check_modules(GTK REQUIRED IMPORTED_TARGET gtk+-3.0)
  56 +
  57 +add_definitions(-DAPPLICATION_ID="${APPLICATION_ID}")
  58 +
  59 +# Define the application target. To change its name, change BINARY_NAME above,
  60 +# not the value here, or `flutter run` will no longer work.
  61 +#
  62 +# Any new source files that you add to the application should be added here.
  63 +add_executable(${BINARY_NAME}
  64 + "main.cc"
  65 + "my_application.cc"
  66 + "${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc"
  67 +)
  68 +
  69 +# Apply the standard set of build settings. This can be removed for applications
  70 +# that need different build settings.
  71 +apply_standard_settings(${BINARY_NAME})
  72 +
  73 +# Add dependency libraries. Add any application-specific dependencies here.
  74 +target_link_libraries(${BINARY_NAME} PRIVATE flutter)
  75 +target_link_libraries(${BINARY_NAME} PRIVATE PkgConfig::GTK)
  76 +
  77 +# Run the Flutter tool portions of the build. This must not be removed.
  78 +add_dependencies(${BINARY_NAME} flutter_assemble)
  79 +
  80 +# Only the install-generated bundle's copy of the executable will launch
  81 +# correctly, since the resources must in the right relative locations. To avoid
  82 +# people trying to run the unbundled copy, put it in a subdirectory instead of
  83 +# the default top-level location.
  84 +set_target_properties(${BINARY_NAME}
  85 + PROPERTIES
  86 + RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/intermediates_do_not_run"
  87 +)
  88 +
  89 +
  90 +# Generated plugin build rules, which manage building the plugins and adding
  91 +# them to the application.
  92 +include(flutter/generated_plugins.cmake)
  93 +
  94 +
  95 +# === Installation ===
  96 +# By default, "installing" just makes a relocatable bundle in the build
  97 +# directory.
  98 +set(BUILD_BUNDLE_DIR "${PROJECT_BINARY_DIR}/bundle")
  99 +if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
  100 + set(CMAKE_INSTALL_PREFIX "${BUILD_BUNDLE_DIR}" CACHE PATH "..." FORCE)
  101 +endif()
  102 +
  103 +# Start with a clean build bundle directory every time.
  104 +install(CODE "
  105 + file(REMOVE_RECURSE \"${BUILD_BUNDLE_DIR}/\")
  106 + " COMPONENT Runtime)
  107 +
  108 +set(INSTALL_BUNDLE_DATA_DIR "${CMAKE_INSTALL_PREFIX}/data")
  109 +set(INSTALL_BUNDLE_LIB_DIR "${CMAKE_INSTALL_PREFIX}/lib")
  110 +
  111 +install(TARGETS ${BINARY_NAME} RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}"
  112 + COMPONENT Runtime)
  113 +
  114 +install(FILES "${FLUTTER_ICU_DATA_FILE}" DESTINATION "${INSTALL_BUNDLE_DATA_DIR}"
  115 + COMPONENT Runtime)
  116 +
  117 +install(FILES "${FLUTTER_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
  118 + COMPONENT Runtime)
  119 +
  120 +foreach(bundled_library ${PLUGIN_BUNDLED_LIBRARIES})
  121 + install(FILES "${bundled_library}"
  122 + DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
  123 + COMPONENT Runtime)
  124 +endforeach(bundled_library)
  125 +
  126 +# Copy the native assets provided by the build.dart from all packages.
  127 +set(NATIVE_ASSETS_DIR "${PROJECT_BUILD_DIR}native_assets/linux/")
  128 +install(DIRECTORY "${NATIVE_ASSETS_DIR}"
  129 + DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
  130 + COMPONENT Runtime)
  131 +
  132 +# Fully re-copy the assets directory on each build to avoid having stale files
  133 +# from a previous install.
  134 +set(FLUTTER_ASSET_DIR_NAME "flutter_assets")
  135 +install(CODE "
  136 + file(REMOVE_RECURSE \"${INSTALL_BUNDLE_DATA_DIR}/${FLUTTER_ASSET_DIR_NAME}\")
  137 + " COMPONENT Runtime)
  138 +install(DIRECTORY "${PROJECT_BUILD_DIR}/${FLUTTER_ASSET_DIR_NAME}"
  139 + DESTINATION "${INSTALL_BUNDLE_DATA_DIR}" COMPONENT Runtime)
  140 +
  141 +# Install the AOT library on non-Debug builds only.
  142 +if(NOT CMAKE_BUILD_TYPE MATCHES "Debug")
  143 + install(FILES "${AOT_LIBRARY}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}"
  144 + COMPONENT Runtime)
  145 +endif()
  1 +# This file controls Flutter-level build steps. It should not be edited.
  2 +cmake_minimum_required(VERSION 3.10)
  3 +
  4 +set(EPHEMERAL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/ephemeral")
  5 +
  6 +# Configuration provided via flutter tool.
  7 +include(${EPHEMERAL_DIR}/generated_config.cmake)
  8 +
  9 +# TODO: Move the rest of this into files in ephemeral. See
  10 +# https://github.com/flutter/flutter/issues/57146.
  11 +
  12 +# Serves the same purpose as list(TRANSFORM ... PREPEND ...),
  13 +# which isn't available in 3.10.
  14 +function(list_prepend LIST_NAME PREFIX)
  15 + set(NEW_LIST "")
  16 + foreach(element ${${LIST_NAME}})
  17 + list(APPEND NEW_LIST "${PREFIX}${element}")
  18 + endforeach(element)
  19 + set(${LIST_NAME} "${NEW_LIST}" PARENT_SCOPE)
  20 +endfunction()
  21 +
  22 +# === Flutter Library ===
  23 +# System-level dependencies.
  24 +find_package(PkgConfig REQUIRED)
  25 +pkg_check_modules(GTK REQUIRED IMPORTED_TARGET gtk+-3.0)
  26 +pkg_check_modules(GLIB REQUIRED IMPORTED_TARGET glib-2.0)
  27 +pkg_check_modules(GIO REQUIRED IMPORTED_TARGET gio-2.0)
  28 +
  29 +set(FLUTTER_LIBRARY "${EPHEMERAL_DIR}/libflutter_linux_gtk.so")
  30 +
  31 +# Published to parent scope for install step.
  32 +set(FLUTTER_LIBRARY ${FLUTTER_LIBRARY} PARENT_SCOPE)
  33 +set(FLUTTER_ICU_DATA_FILE "${EPHEMERAL_DIR}/icudtl.dat" PARENT_SCOPE)
  34 +set(PROJECT_BUILD_DIR "${PROJECT_DIR}/build/" PARENT_SCOPE)
  35 +set(AOT_LIBRARY "${PROJECT_DIR}/build/lib/libapp.so" PARENT_SCOPE)
  36 +
  37 +list(APPEND FLUTTER_LIBRARY_HEADERS
  38 + "fl_basic_message_channel.h"
  39 + "fl_binary_codec.h"
  40 + "fl_binary_messenger.h"
  41 + "fl_dart_project.h"
  42 + "fl_engine.h"
  43 + "fl_json_message_codec.h"
  44 + "fl_json_method_codec.h"
  45 + "fl_message_codec.h"
  46 + "fl_method_call.h"
  47 + "fl_method_channel.h"
  48 + "fl_method_codec.h"
  49 + "fl_method_response.h"
  50 + "fl_plugin_registrar.h"
  51 + "fl_plugin_registry.h"
  52 + "fl_standard_message_codec.h"
  53 + "fl_standard_method_codec.h"
  54 + "fl_string_codec.h"
  55 + "fl_value.h"
  56 + "fl_view.h"
  57 + "flutter_linux.h"
  58 +)
  59 +list_prepend(FLUTTER_LIBRARY_HEADERS "${EPHEMERAL_DIR}/flutter_linux/")
  60 +add_library(flutter INTERFACE)
  61 +target_include_directories(flutter INTERFACE
  62 + "${EPHEMERAL_DIR}"
  63 +)
  64 +target_link_libraries(flutter INTERFACE "${FLUTTER_LIBRARY}")
  65 +target_link_libraries(flutter INTERFACE
  66 + PkgConfig::GTK
  67 + PkgConfig::GLIB
  68 + PkgConfig::GIO
  69 +)
  70 +add_dependencies(flutter flutter_assemble)
  71 +
  72 +# === Flutter tool backend ===
  73 +# _phony_ is a non-existent file to force this command to run every time,
  74 +# since currently there's no way to get a full input/output list from the
  75 +# flutter tool.
  76 +add_custom_command(
  77 + OUTPUT ${FLUTTER_LIBRARY} ${FLUTTER_LIBRARY_HEADERS}
  78 + ${CMAKE_CURRENT_BINARY_DIR}/_phony_
  79 + COMMAND ${CMAKE_COMMAND} -E env
  80 + ${FLUTTER_TOOL_ENVIRONMENT}
  81 + "${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.sh"
  82 + ${FLUTTER_TARGET_PLATFORM} ${CMAKE_BUILD_TYPE}
  83 + VERBATIM
  84 +)
  85 +add_custom_target(flutter_assemble DEPENDS
  86 + "${FLUTTER_LIBRARY}"
  87 + ${FLUTTER_LIBRARY_HEADERS}
  88 +)
  1 +#include "my_application.h"
  2 +
  3 +int main(int argc, char** argv) {
  4 + g_autoptr(MyApplication) app = my_application_new();
  5 + return g_application_run(G_APPLICATION(app), argc, argv);
  6 +}
  1 +#include "my_application.h"
  2 +
  3 +#include <flutter_linux/flutter_linux.h>
  4 +#ifdef GDK_WINDOWING_X11
  5 +#include <gdk/gdkx.h>
  6 +#endif
  7 +
  8 +#include "flutter/generated_plugin_registrant.h"
  9 +
  10 +struct _MyApplication {
  11 + GtkApplication parent_instance;
  12 + char** dart_entrypoint_arguments;
  13 +};
  14 +
  15 +G_DEFINE_TYPE(MyApplication, my_application, GTK_TYPE_APPLICATION)
  16 +
  17 +// Implements GApplication::activate.
  18 +static void my_application_activate(GApplication* application) {
  19 + MyApplication* self = MY_APPLICATION(application);
  20 + GtkWindow* window =
  21 + GTK_WINDOW(gtk_application_window_new(GTK_APPLICATION(application)));
  22 +
  23 + // Use a header bar when running in GNOME as this is the common style used
  24 + // by applications and is the setup most users will be using (e.g. Ubuntu
  25 + // desktop).
  26 + // If running on X and not using GNOME then just use a traditional title bar
  27 + // in case the window manager does more exotic layout, e.g. tiling.
  28 + // If running on Wayland assume the header bar will work (may need changing
  29 + // if future cases occur).
  30 + gboolean use_header_bar = TRUE;
  31 +#ifdef GDK_WINDOWING_X11
  32 + GdkScreen* screen = gtk_window_get_screen(window);
  33 + if (GDK_IS_X11_SCREEN(screen)) {
  34 + const gchar* wm_name = gdk_x11_screen_get_window_manager_name(screen);
  35 + if (g_strcmp0(wm_name, "GNOME Shell") != 0) {
  36 + use_header_bar = FALSE;
  37 + }
  38 + }
  39 +#endif
  40 + if (use_header_bar) {
  41 + GtkHeaderBar* header_bar = GTK_HEADER_BAR(gtk_header_bar_new());
  42 + gtk_widget_show(GTK_WIDGET(header_bar));
  43 + gtk_header_bar_set_title(header_bar, "tts");
  44 + gtk_header_bar_set_show_close_button(header_bar, TRUE);
  45 + gtk_window_set_titlebar(window, GTK_WIDGET(header_bar));
  46 + } else {
  47 + gtk_window_set_title(window, "tts");
  48 + }
  49 +
  50 + gtk_window_set_default_size(window, 1280, 720);
  51 + gtk_widget_show(GTK_WIDGET(window));
  52 +
  53 + g_autoptr(FlDartProject) project = fl_dart_project_new();
  54 + fl_dart_project_set_dart_entrypoint_arguments(project, self->dart_entrypoint_arguments);
  55 +
  56 + FlView* view = fl_view_new(project);
  57 + gtk_widget_show(GTK_WIDGET(view));
  58 + gtk_container_add(GTK_CONTAINER(window), GTK_WIDGET(view));
  59 +
  60 + fl_register_plugins(FL_PLUGIN_REGISTRY(view));
  61 +
  62 + gtk_widget_grab_focus(GTK_WIDGET(view));
  63 +}
  64 +
  65 +// Implements GApplication::local_command_line.
  66 +static gboolean my_application_local_command_line(GApplication* application, gchar*** arguments, int* exit_status) {
  67 + MyApplication* self = MY_APPLICATION(application);
  68 + // Strip out the first argument as it is the binary name.
  69 + self->dart_entrypoint_arguments = g_strdupv(*arguments + 1);
  70 +
  71 + g_autoptr(GError) error = nullptr;
  72 + if (!g_application_register(application, nullptr, &error)) {
  73 + g_warning("Failed to register: %s", error->message);
  74 + *exit_status = 1;
  75 + return TRUE;
  76 + }
  77 +
  78 + g_application_activate(application);
  79 + *exit_status = 0;
  80 +
  81 + return TRUE;
  82 +}
  83 +
  84 +// Implements GApplication::startup.
  85 +static void my_application_startup(GApplication* application) {
  86 + //MyApplication* self = MY_APPLICATION(object);
  87 +
  88 + // Perform any actions required at application startup.
  89 +
  90 + G_APPLICATION_CLASS(my_application_parent_class)->startup(application);
  91 +}
  92 +
  93 +// Implements GApplication::shutdown.
  94 +static void my_application_shutdown(GApplication* application) {
  95 + //MyApplication* self = MY_APPLICATION(object);
  96 +
  97 + // Perform any actions required at application shutdown.
  98 +
  99 + G_APPLICATION_CLASS(my_application_parent_class)->shutdown(application);
  100 +}
  101 +
  102 +// Implements GObject::dispose.
  103 +static void my_application_dispose(GObject* object) {
  104 + MyApplication* self = MY_APPLICATION(object);
  105 + g_clear_pointer(&self->dart_entrypoint_arguments, g_strfreev);
  106 + G_OBJECT_CLASS(my_application_parent_class)->dispose(object);
  107 +}
  108 +
  109 +static void my_application_class_init(MyApplicationClass* klass) {
  110 + G_APPLICATION_CLASS(klass)->activate = my_application_activate;
  111 + G_APPLICATION_CLASS(klass)->local_command_line = my_application_local_command_line;
  112 + G_APPLICATION_CLASS(klass)->startup = my_application_startup;
  113 + G_APPLICATION_CLASS(klass)->shutdown = my_application_shutdown;
  114 + G_OBJECT_CLASS(klass)->dispose = my_application_dispose;
  115 +}
  116 +
  117 +static void my_application_init(MyApplication* self) {}
  118 +
  119 +MyApplication* my_application_new() {
  120 + return MY_APPLICATION(g_object_new(my_application_get_type(),
  121 + "application-id", APPLICATION_ID,
  122 + "flags", G_APPLICATION_NON_UNIQUE,
  123 + nullptr));
  124 +}
  1 +#ifndef FLUTTER_MY_APPLICATION_H_
  2 +#define FLUTTER_MY_APPLICATION_H_
  3 +
  4 +#include <gtk/gtk.h>
  5 +
  6 +G_DECLARE_FINAL_TYPE(MyApplication, my_application, MY, APPLICATION,
  7 + GtkApplication)
  8 +
  9 +/**
  10 + * my_application_new:
  11 + *
  12 + * Creates a new Flutter-based application.
  13 + *
  14 + * Returns: a new #MyApplication.
  15 + */
  16 +MyApplication* my_application_new();
  17 +
  18 +#endif // FLUTTER_MY_APPLICATION_H_
  1 +# Flutter-related
  2 +**/Flutter/ephemeral/
  3 +**/Pods/
  4 +
  5 +# Xcode-related
  6 +**/dgph
  7 +**/xcuserdata/
  1 +#include "ephemeral/Flutter-Generated.xcconfig"
  1 +#include "ephemeral/Flutter-Generated.xcconfig"
  1 +// !$*UTF8*$!
  2 +{
  3 + archiveVersion = 1;
  4 + classes = {
  5 + };
  6 + objectVersion = 54;
  7 + objects = {
  8 +
  9 +/* Begin PBXAggregateTarget section */
  10 + 33CC111A2044C6BA0003C045 /* Flutter Assemble */ = {
  11 + isa = PBXAggregateTarget;
  12 + buildConfigurationList = 33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget "Flutter Assemble" */;
  13 + buildPhases = (
  14 + 33CC111E2044C6BF0003C045 /* ShellScript */,
  15 + );
  16 + dependencies = (
  17 + );
  18 + name = "Flutter Assemble";
  19 + productName = FLX;
  20 + };
  21 +/* End PBXAggregateTarget section */
  22 +
  23 +/* Begin PBXBuildFile section */
  24 + 331C80D8294CF71000263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C80D7294CF71000263BE5 /* RunnerTests.swift */; };
  25 + 335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */ = {isa = PBXBuildFile; fileRef = 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */; };
  26 + 33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC10F02044A3C60003C045 /* AppDelegate.swift */; };
  27 + 33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F22044A3C60003C045 /* Assets.xcassets */; };
  28 + 33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 33CC10F42044A3C60003C045 /* MainMenu.xib */; };
  29 + 33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */; };
  30 +/* End PBXBuildFile section */
  31 +
  32 +/* Begin PBXContainerItemProxy section */
  33 + 331C80D9294CF71000263BE5 /* PBXContainerItemProxy */ = {
  34 + isa = PBXContainerItemProxy;
  35 + containerPortal = 33CC10E52044A3C60003C045 /* Project object */;
  36 + proxyType = 1;
  37 + remoteGlobalIDString = 33CC10EC2044A3C60003C045;
  38 + remoteInfo = Runner;
  39 + };
  40 + 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */ = {
  41 + isa = PBXContainerItemProxy;
  42 + containerPortal = 33CC10E52044A3C60003C045 /* Project object */;
  43 + proxyType = 1;
  44 + remoteGlobalIDString = 33CC111A2044C6BA0003C045;
  45 + remoteInfo = FLX;
  46 + };
  47 +/* End PBXContainerItemProxy section */
  48 +
  49 +/* Begin PBXCopyFilesBuildPhase section */
  50 + 33CC110E2044A8840003C045 /* Bundle Framework */ = {
  51 + isa = PBXCopyFilesBuildPhase;
  52 + buildActionMask = 2147483647;
  53 + dstPath = "";
  54 + dstSubfolderSpec = 10;
  55 + files = (
  56 + );
  57 + name = "Bundle Framework";
  58 + runOnlyForDeploymentPostprocessing = 0;
  59 + };
  60 +/* End PBXCopyFilesBuildPhase section */
  61 +
  62 +/* Begin PBXFileReference section */
  63 + 331C80D5294CF71000263BE5 /* RunnerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = RunnerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
  64 + 331C80D7294CF71000263BE5 /* RunnerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RunnerTests.swift; sourceTree = "<group>"; };
  65 + 333000ED22D3DE5D00554162 /* Warnings.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Warnings.xcconfig; sourceTree = "<group>"; };
  66 + 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = GeneratedPluginRegistrant.swift; sourceTree = "<group>"; };
  67 + 33CC10ED2044A3C60003C045 /* tts.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "tts.app"; sourceTree = BUILT_PRODUCTS_DIR; };
  68 + 33CC10F02044A3C60003C045 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
  69 + 33CC10F22044A3C60003C045 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = Runner/Assets.xcassets; sourceTree = "<group>"; };
  70 + 33CC10F52044A3C60003C045 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = "<group>"; };
  71 + 33CC10F72044A3C60003C045 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = Info.plist; path = Runner/Info.plist; sourceTree = "<group>"; };
  72 + 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainFlutterWindow.swift; sourceTree = "<group>"; };
  73 + 33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Debug.xcconfig"; sourceTree = "<group>"; };
  74 + 33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "Flutter-Release.xcconfig"; sourceTree = "<group>"; };
  75 + 33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = "Flutter-Generated.xcconfig"; path = "ephemeral/Flutter-Generated.xcconfig"; sourceTree = "<group>"; };
  76 + 33E51913231747F40026EE4D /* DebugProfile.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = DebugProfile.entitlements; sourceTree = "<group>"; };
  77 + 33E51914231749380026EE4D /* Release.entitlements */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.entitlements; path = Release.entitlements; sourceTree = "<group>"; };
  78 + 33E5194F232828860026EE4D /* AppInfo.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = AppInfo.xcconfig; sourceTree = "<group>"; };
  79 + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Release.xcconfig; sourceTree = "<group>"; };
  80 + 9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = Debug.xcconfig; sourceTree = "<group>"; };
  81 +/* End PBXFileReference section */
  82 +
  83 +/* Begin PBXFrameworksBuildPhase section */
  84 + 331C80D2294CF70F00263BE5 /* Frameworks */ = {
  85 + isa = PBXFrameworksBuildPhase;
  86 + buildActionMask = 2147483647;
  87 + files = (
  88 + );
  89 + runOnlyForDeploymentPostprocessing = 0;
  90 + };
  91 + 33CC10EA2044A3C60003C045 /* Frameworks */ = {
  92 + isa = PBXFrameworksBuildPhase;
  93 + buildActionMask = 2147483647;
  94 + files = (
  95 + );
  96 + runOnlyForDeploymentPostprocessing = 0;
  97 + };
  98 +/* End PBXFrameworksBuildPhase section */
  99 +
  100 +/* Begin PBXGroup section */
  101 + 331C80D6294CF71000263BE5 /* RunnerTests */ = {
  102 + isa = PBXGroup;
  103 + children = (
  104 + 331C80D7294CF71000263BE5 /* RunnerTests.swift */,
  105 + );
  106 + path = RunnerTests;
  107 + sourceTree = "<group>";
  108 + };
  109 + 33BA886A226E78AF003329D5 /* Configs */ = {
  110 + isa = PBXGroup;
  111 + children = (
  112 + 33E5194F232828860026EE4D /* AppInfo.xcconfig */,
  113 + 9740EEB21CF90195004384FC /* Debug.xcconfig */,
  114 + 7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
  115 + 333000ED22D3DE5D00554162 /* Warnings.xcconfig */,
  116 + );
  117 + path = Configs;
  118 + sourceTree = "<group>";
  119 + };
  120 + 33CC10E42044A3C60003C045 = {
  121 + isa = PBXGroup;
  122 + children = (
  123 + 33FAB671232836740065AC1E /* Runner */,
  124 + 33CEB47122A05771004F2AC0 /* Flutter */,
  125 + 331C80D6294CF71000263BE5 /* RunnerTests */,
  126 + 33CC10EE2044A3C60003C045 /* Products */,
  127 + D73912EC22F37F3D000D13A0 /* Frameworks */,
  128 + );
  129 + sourceTree = "<group>";
  130 + };
  131 + 33CC10EE2044A3C60003C045 /* Products */ = {
  132 + isa = PBXGroup;
  133 + children = (
  134 + 33CC10ED2044A3C60003C045 /* tts.app */,
  135 + 331C80D5294CF71000263BE5 /* RunnerTests.xctest */,
  136 + );
  137 + name = Products;
  138 + sourceTree = "<group>";
  139 + };
  140 + 33CC11242044D66E0003C045 /* Resources */ = {
  141 + isa = PBXGroup;
  142 + children = (
  143 + 33CC10F22044A3C60003C045 /* Assets.xcassets */,
  144 + 33CC10F42044A3C60003C045 /* MainMenu.xib */,
  145 + 33CC10F72044A3C60003C045 /* Info.plist */,
  146 + );
  147 + name = Resources;
  148 + path = ..;
  149 + sourceTree = "<group>";
  150 + };
  151 + 33CEB47122A05771004F2AC0 /* Flutter */ = {
  152 + isa = PBXGroup;
  153 + children = (
  154 + 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */,
  155 + 33CEB47222A05771004F2AC0 /* Flutter-Debug.xcconfig */,
  156 + 33CEB47422A05771004F2AC0 /* Flutter-Release.xcconfig */,
  157 + 33CEB47722A0578A004F2AC0 /* Flutter-Generated.xcconfig */,
  158 + );
  159 + path = Flutter;
  160 + sourceTree = "<group>";
  161 + };
  162 + 33FAB671232836740065AC1E /* Runner */ = {
  163 + isa = PBXGroup;
  164 + children = (
  165 + 33CC10F02044A3C60003C045 /* AppDelegate.swift */,
  166 + 33CC11122044BFA00003C045 /* MainFlutterWindow.swift */,
  167 + 33E51913231747F40026EE4D /* DebugProfile.entitlements */,
  168 + 33E51914231749380026EE4D /* Release.entitlements */,
  169 + 33CC11242044D66E0003C045 /* Resources */,
  170 + 33BA886A226E78AF003329D5 /* Configs */,
  171 + );
  172 + path = Runner;
  173 + sourceTree = "<group>";
  174 + };
  175 + D73912EC22F37F3D000D13A0 /* Frameworks */ = {
  176 + isa = PBXGroup;
  177 + children = (
  178 + );
  179 + name = Frameworks;
  180 + sourceTree = "<group>";
  181 + };
  182 +/* End PBXGroup section */
  183 +
  184 +/* Begin PBXNativeTarget section */
  185 + 331C80D4294CF70F00263BE5 /* RunnerTests */ = {
  186 + isa = PBXNativeTarget;
  187 + buildConfigurationList = 331C80DE294CF71000263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */;
  188 + buildPhases = (
  189 + 331C80D1294CF70F00263BE5 /* Sources */,
  190 + 331C80D2294CF70F00263BE5 /* Frameworks */,
  191 + 331C80D3294CF70F00263BE5 /* Resources */,
  192 + );
  193 + buildRules = (
  194 + );
  195 + dependencies = (
  196 + 331C80DA294CF71000263BE5 /* PBXTargetDependency */,
  197 + );
  198 + name = RunnerTests;
  199 + productName = RunnerTests;
  200 + productReference = 331C80D5294CF71000263BE5 /* RunnerTests.xctest */;
  201 + productType = "com.apple.product-type.bundle.unit-test";
  202 + };
  203 + 33CC10EC2044A3C60003C045 /* Runner */ = {
  204 + isa = PBXNativeTarget;
  205 + buildConfigurationList = 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */;
  206 + buildPhases = (
  207 + 33CC10E92044A3C60003C045 /* Sources */,
  208 + 33CC10EA2044A3C60003C045 /* Frameworks */,
  209 + 33CC10EB2044A3C60003C045 /* Resources */,
  210 + 33CC110E2044A8840003C045 /* Bundle Framework */,
  211 + 3399D490228B24CF009A79C7 /* ShellScript */,
  212 + );
  213 + buildRules = (
  214 + );
  215 + dependencies = (
  216 + 33CC11202044C79F0003C045 /* PBXTargetDependency */,
  217 + );
  218 + name = Runner;
  219 + productName = Runner;
  220 + productReference = 33CC10ED2044A3C60003C045 /* tts.app */;
  221 + productType = "com.apple.product-type.application";
  222 + };
  223 +/* End PBXNativeTarget section */
  224 +
  225 +/* Begin PBXProject section */
  226 + 33CC10E52044A3C60003C045 /* Project object */ = {
  227 + isa = PBXProject;
  228 + attributes = {
  229 + BuildIndependentTargetsInParallel = YES;
  230 + LastSwiftUpdateCheck = 0920;
  231 + LastUpgradeCheck = 1510;
  232 + ORGANIZATIONNAME = "";
  233 + TargetAttributes = {
  234 + 331C80D4294CF70F00263BE5 = {
  235 + CreatedOnToolsVersion = 14.0;
  236 + TestTargetID = 33CC10EC2044A3C60003C045;
  237 + };
  238 + 33CC10EC2044A3C60003C045 = {
  239 + CreatedOnToolsVersion = 9.2;
  240 + LastSwiftMigration = 1100;
  241 + ProvisioningStyle = Automatic;
  242 + SystemCapabilities = {
  243 + com.apple.Sandbox = {
  244 + enabled = 1;
  245 + };
  246 + };
  247 + };
  248 + 33CC111A2044C6BA0003C045 = {
  249 + CreatedOnToolsVersion = 9.2;
  250 + ProvisioningStyle = Manual;
  251 + };
  252 + };
  253 + };
  254 + buildConfigurationList = 33CC10E82044A3C60003C045 /* Build configuration list for PBXProject "Runner" */;
  255 + compatibilityVersion = "Xcode 9.3";
  256 + developmentRegion = en;
  257 + hasScannedForEncodings = 0;
  258 + knownRegions = (
  259 + en,
  260 + Base,
  261 + );
  262 + mainGroup = 33CC10E42044A3C60003C045;
  263 + productRefGroup = 33CC10EE2044A3C60003C045 /* Products */;
  264 + projectDirPath = "";
  265 + projectRoot = "";
  266 + targets = (
  267 + 33CC10EC2044A3C60003C045 /* Runner */,
  268 + 331C80D4294CF70F00263BE5 /* RunnerTests */,
  269 + 33CC111A2044C6BA0003C045 /* Flutter Assemble */,
  270 + );
  271 + };
  272 +/* End PBXProject section */
  273 +
  274 +/* Begin PBXResourcesBuildPhase section */
  275 + 331C80D3294CF70F00263BE5 /* Resources */ = {
  276 + isa = PBXResourcesBuildPhase;
  277 + buildActionMask = 2147483647;
  278 + files = (
  279 + );
  280 + runOnlyForDeploymentPostprocessing = 0;
  281 + };
  282 + 33CC10EB2044A3C60003C045 /* Resources */ = {
  283 + isa = PBXResourcesBuildPhase;
  284 + buildActionMask = 2147483647;
  285 + files = (
  286 + 33CC10F32044A3C60003C045 /* Assets.xcassets in Resources */,
  287 + 33CC10F62044A3C60003C045 /* MainMenu.xib in Resources */,
  288 + );
  289 + runOnlyForDeploymentPostprocessing = 0;
  290 + };
  291 +/* End PBXResourcesBuildPhase section */
  292 +
  293 +/* Begin PBXShellScriptBuildPhase section */
  294 + 3399D490228B24CF009A79C7 /* ShellScript */ = {
  295 + isa = PBXShellScriptBuildPhase;
  296 + alwaysOutOfDate = 1;
  297 + buildActionMask = 2147483647;
  298 + files = (
  299 + );
  300 + inputFileListPaths = (
  301 + );
  302 + inputPaths = (
  303 + );
  304 + outputFileListPaths = (
  305 + );
  306 + outputPaths = (
  307 + );
  308 + runOnlyForDeploymentPostprocessing = 0;
  309 + shellPath = /bin/sh;
  310 + shellScript = "echo \"$PRODUCT_NAME.app\" > \"$PROJECT_DIR\"/Flutter/ephemeral/.app_filename && \"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh embed\n";
  311 + };
  312 + 33CC111E2044C6BF0003C045 /* ShellScript */ = {
  313 + isa = PBXShellScriptBuildPhase;
  314 + buildActionMask = 2147483647;
  315 + files = (
  316 + );
  317 + inputFileListPaths = (
  318 + Flutter/ephemeral/FlutterInputs.xcfilelist,
  319 + );
  320 + inputPaths = (
  321 + Flutter/ephemeral/tripwire,
  322 + );
  323 + outputFileListPaths = (
  324 + Flutter/ephemeral/FlutterOutputs.xcfilelist,
  325 + );
  326 + outputPaths = (
  327 + );
  328 + runOnlyForDeploymentPostprocessing = 0;
  329 + shellPath = /bin/sh;
  330 + shellScript = "\"$FLUTTER_ROOT\"/packages/flutter_tools/bin/macos_assemble.sh && touch Flutter/ephemeral/tripwire";
  331 + };
  332 +/* End PBXShellScriptBuildPhase section */
  333 +
  334 +/* Begin PBXSourcesBuildPhase section */
  335 + 331C80D1294CF70F00263BE5 /* Sources */ = {
  336 + isa = PBXSourcesBuildPhase;
  337 + buildActionMask = 2147483647;
  338 + files = (
  339 + 331C80D8294CF71000263BE5 /* RunnerTests.swift in Sources */,
  340 + );
  341 + runOnlyForDeploymentPostprocessing = 0;
  342 + };
  343 + 33CC10E92044A3C60003C045 /* Sources */ = {
  344 + isa = PBXSourcesBuildPhase;
  345 + buildActionMask = 2147483647;
  346 + files = (
  347 + 33CC11132044BFA00003C045 /* MainFlutterWindow.swift in Sources */,
  348 + 33CC10F12044A3C60003C045 /* AppDelegate.swift in Sources */,
  349 + 335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */,
  350 + );
  351 + runOnlyForDeploymentPostprocessing = 0;
  352 + };
  353 +/* End PBXSourcesBuildPhase section */
  354 +
  355 +/* Begin PBXTargetDependency section */
  356 + 331C80DA294CF71000263BE5 /* PBXTargetDependency */ = {
  357 + isa = PBXTargetDependency;
  358 + target = 33CC10EC2044A3C60003C045 /* Runner */;
  359 + targetProxy = 331C80D9294CF71000263BE5 /* PBXContainerItemProxy */;
  360 + };
  361 + 33CC11202044C79F0003C045 /* PBXTargetDependency */ = {
  362 + isa = PBXTargetDependency;
  363 + target = 33CC111A2044C6BA0003C045 /* Flutter Assemble */;
  364 + targetProxy = 33CC111F2044C79F0003C045 /* PBXContainerItemProxy */;
  365 + };
  366 +/* End PBXTargetDependency section */
  367 +
  368 +/* Begin PBXVariantGroup section */
  369 + 33CC10F42044A3C60003C045 /* MainMenu.xib */ = {
  370 + isa = PBXVariantGroup;
  371 + children = (
  372 + 33CC10F52044A3C60003C045 /* Base */,
  373 + );
  374 + name = MainMenu.xib;
  375 + path = Runner;
  376 + sourceTree = "<group>";
  377 + };
  378 +/* End PBXVariantGroup section */
  379 +
  380 +/* Begin XCBuildConfiguration section */
  381 + 331C80DB294CF71000263BE5 /* Debug */ = {
  382 + isa = XCBuildConfiguration;
  383 + buildSettings = {
  384 + BUNDLE_LOADER = "$(TEST_HOST)";
  385 + CURRENT_PROJECT_VERSION = 1;
  386 + GENERATE_INFOPLIST_FILE = YES;
  387 + MARKETING_VERSION = 1.0;
  388 + PRODUCT_BUNDLE_IDENTIFIER = com.k2fsa.sherpa.onnx.tts.RunnerTests;
  389 + PRODUCT_NAME = "$(TARGET_NAME)";
  390 + SWIFT_VERSION = 5.0;
  391 + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/tts.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/tts";
  392 + };
  393 + name = Debug;
  394 + };
  395 + 331C80DC294CF71000263BE5 /* Release */ = {
  396 + isa = XCBuildConfiguration;
  397 + buildSettings = {
  398 + BUNDLE_LOADER = "$(TEST_HOST)";
  399 + CURRENT_PROJECT_VERSION = 1;
  400 + GENERATE_INFOPLIST_FILE = YES;
  401 + MARKETING_VERSION = 1.0;
  402 + PRODUCT_BUNDLE_IDENTIFIER = com.k2fsa.sherpa.onnx.tts.RunnerTests;
  403 + PRODUCT_NAME = "$(TARGET_NAME)";
  404 + SWIFT_VERSION = 5.0;
  405 + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/tts.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/tts";
  406 + };
  407 + name = Release;
  408 + };
  409 + 331C80DD294CF71000263BE5 /* Profile */ = {
  410 + isa = XCBuildConfiguration;
  411 + buildSettings = {
  412 + BUNDLE_LOADER = "$(TEST_HOST)";
  413 + CURRENT_PROJECT_VERSION = 1;
  414 + GENERATE_INFOPLIST_FILE = YES;
  415 + MARKETING_VERSION = 1.0;
  416 + PRODUCT_BUNDLE_IDENTIFIER = com.k2fsa.sherpa.onnx.tts.RunnerTests;
  417 + PRODUCT_NAME = "$(TARGET_NAME)";
  418 + SWIFT_VERSION = 5.0;
  419 + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/tts.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/tts";
  420 + };
  421 + name = Profile;
  422 + };
  423 + 338D0CE9231458BD00FA5F75 /* Profile */ = {
  424 + isa = XCBuildConfiguration;
  425 + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
  426 + buildSettings = {
  427 + ALWAYS_SEARCH_USER_PATHS = NO;
  428 + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
  429 + CLANG_ANALYZER_NONNULL = YES;
  430 + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
  431 + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
  432 + CLANG_CXX_LIBRARY = "libc++";
  433 + CLANG_ENABLE_MODULES = YES;
  434 + CLANG_ENABLE_OBJC_ARC = YES;
  435 + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
  436 + CLANG_WARN_BOOL_CONVERSION = YES;
  437 + CLANG_WARN_CONSTANT_CONVERSION = YES;
  438 + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
  439 + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
  440 + CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
  441 + CLANG_WARN_EMPTY_BODY = YES;
  442 + CLANG_WARN_ENUM_CONVERSION = YES;
  443 + CLANG_WARN_INFINITE_RECURSION = YES;
  444 + CLANG_WARN_INT_CONVERSION = YES;
  445 + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
  446 + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
  447 + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
  448 + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
  449 + CLANG_WARN_SUSPICIOUS_MOVE = YES;
  450 + CODE_SIGN_IDENTITY = "-";
  451 + COPY_PHASE_STRIP = NO;
  452 + DEAD_CODE_STRIPPING = YES;
  453 + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
  454 + ENABLE_NS_ASSERTIONS = NO;
  455 + ENABLE_STRICT_OBJC_MSGSEND = YES;
  456 + ENABLE_USER_SCRIPT_SANDBOXING = NO;
  457 + GCC_C_LANGUAGE_STANDARD = gnu11;
  458 + GCC_NO_COMMON_BLOCKS = YES;
  459 + GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
  460 + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
  461 + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
  462 + GCC_WARN_UNUSED_FUNCTION = YES;
  463 + GCC_WARN_UNUSED_VARIABLE = YES;
  464 + MACOSX_DEPLOYMENT_TARGET = 10.14;
  465 + MTL_ENABLE_DEBUG_INFO = NO;
  466 + SDKROOT = macosx;
  467 + SWIFT_COMPILATION_MODE = wholemodule;
  468 + SWIFT_OPTIMIZATION_LEVEL = "-O";
  469 + };
  470 + name = Profile;
  471 + };
  472 + 338D0CEA231458BD00FA5F75 /* Profile */ = {
  473 + isa = XCBuildConfiguration;
  474 + baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */;
  475 + buildSettings = {
  476 + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
  477 + CLANG_ENABLE_MODULES = YES;
  478 + CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements;
  479 + CODE_SIGN_STYLE = Automatic;
  480 + COMBINE_HIDPI_IMAGES = YES;
  481 + INFOPLIST_FILE = Runner/Info.plist;
  482 + LD_RUNPATH_SEARCH_PATHS = (
  483 + "$(inherited)",
  484 + "@executable_path/../Frameworks",
  485 + );
  486 + PROVISIONING_PROFILE_SPECIFIER = "";
  487 + SWIFT_VERSION = 5.0;
  488 + };
  489 + name = Profile;
  490 + };
  491 + 338D0CEB231458BD00FA5F75 /* Profile */ = {
  492 + isa = XCBuildConfiguration;
  493 + buildSettings = {
  494 + CODE_SIGN_STYLE = Manual;
  495 + PRODUCT_NAME = "$(TARGET_NAME)";
  496 + };
  497 + name = Profile;
  498 + };
  499 + 33CC10F92044A3C60003C045 /* Debug */ = {
  500 + isa = XCBuildConfiguration;
  501 + baseConfigurationReference = 9740EEB21CF90195004384FC /* Debug.xcconfig */;
  502 + buildSettings = {
  503 + ALWAYS_SEARCH_USER_PATHS = NO;
  504 + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
  505 + CLANG_ANALYZER_NONNULL = YES;
  506 + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
  507 + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
  508 + CLANG_CXX_LIBRARY = "libc++";
  509 + CLANG_ENABLE_MODULES = YES;
  510 + CLANG_ENABLE_OBJC_ARC = YES;
  511 + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
  512 + CLANG_WARN_BOOL_CONVERSION = YES;
  513 + CLANG_WARN_CONSTANT_CONVERSION = YES;
  514 + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
  515 + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
  516 + CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
  517 + CLANG_WARN_EMPTY_BODY = YES;
  518 + CLANG_WARN_ENUM_CONVERSION = YES;
  519 + CLANG_WARN_INFINITE_RECURSION = YES;
  520 + CLANG_WARN_INT_CONVERSION = YES;
  521 + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
  522 + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
  523 + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
  524 + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
  525 + CLANG_WARN_SUSPICIOUS_MOVE = YES;
  526 + CODE_SIGN_IDENTITY = "-";
  527 + COPY_PHASE_STRIP = NO;
  528 + DEAD_CODE_STRIPPING = YES;
  529 + DEBUG_INFORMATION_FORMAT = dwarf;
  530 + ENABLE_STRICT_OBJC_MSGSEND = YES;
  531 + ENABLE_TESTABILITY = YES;
  532 + ENABLE_USER_SCRIPT_SANDBOXING = NO;
  533 + GCC_C_LANGUAGE_STANDARD = gnu11;
  534 + GCC_DYNAMIC_NO_PIC = NO;
  535 + GCC_NO_COMMON_BLOCKS = YES;
  536 + GCC_OPTIMIZATION_LEVEL = 0;
  537 + GCC_PREPROCESSOR_DEFINITIONS = (
  538 + "DEBUG=1",
  539 + "$(inherited)",
  540 + );
  541 + GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
  542 + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
  543 + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
  544 + GCC_WARN_UNUSED_FUNCTION = YES;
  545 + GCC_WARN_UNUSED_VARIABLE = YES;
  546 + MACOSX_DEPLOYMENT_TARGET = 10.14;
  547 + MTL_ENABLE_DEBUG_INFO = YES;
  548 + ONLY_ACTIVE_ARCH = YES;
  549 + SDKROOT = macosx;
  550 + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
  551 + SWIFT_OPTIMIZATION_LEVEL = "-Onone";
  552 + };
  553 + name = Debug;
  554 + };
  555 + 33CC10FA2044A3C60003C045 /* Release */ = {
  556 + isa = XCBuildConfiguration;
  557 + baseConfigurationReference = 7AFA3C8E1D35360C0083082E /* Release.xcconfig */;
  558 + buildSettings = {
  559 + ALWAYS_SEARCH_USER_PATHS = NO;
  560 + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
  561 + CLANG_ANALYZER_NONNULL = YES;
  562 + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
  563 + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
  564 + CLANG_CXX_LIBRARY = "libc++";
  565 + CLANG_ENABLE_MODULES = YES;
  566 + CLANG_ENABLE_OBJC_ARC = YES;
  567 + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
  568 + CLANG_WARN_BOOL_CONVERSION = YES;
  569 + CLANG_WARN_CONSTANT_CONVERSION = YES;
  570 + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
  571 + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
  572 + CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
  573 + CLANG_WARN_EMPTY_BODY = YES;
  574 + CLANG_WARN_ENUM_CONVERSION = YES;
  575 + CLANG_WARN_INFINITE_RECURSION = YES;
  576 + CLANG_WARN_INT_CONVERSION = YES;
  577 + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
  578 + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
  579 + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
  580 + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
  581 + CLANG_WARN_SUSPICIOUS_MOVE = YES;
  582 + CODE_SIGN_IDENTITY = "-";
  583 + COPY_PHASE_STRIP = NO;
  584 + DEAD_CODE_STRIPPING = YES;
  585 + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
  586 + ENABLE_NS_ASSERTIONS = NO;
  587 + ENABLE_STRICT_OBJC_MSGSEND = YES;
  588 + ENABLE_USER_SCRIPT_SANDBOXING = NO;
  589 + GCC_C_LANGUAGE_STANDARD = gnu11;
  590 + GCC_NO_COMMON_BLOCKS = YES;
  591 + GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
  592 + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
  593 + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
  594 + GCC_WARN_UNUSED_FUNCTION = YES;
  595 + GCC_WARN_UNUSED_VARIABLE = YES;
  596 + MACOSX_DEPLOYMENT_TARGET = 10.14;
  597 + MTL_ENABLE_DEBUG_INFO = NO;
  598 + SDKROOT = macosx;
  599 + SWIFT_COMPILATION_MODE = wholemodule;
  600 + SWIFT_OPTIMIZATION_LEVEL = "-O";
  601 + };
  602 + name = Release;
  603 + };
  604 + 33CC10FC2044A3C60003C045 /* Debug */ = {
  605 + isa = XCBuildConfiguration;
  606 + baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */;
  607 + buildSettings = {
  608 + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
  609 + CLANG_ENABLE_MODULES = YES;
  610 + CODE_SIGN_ENTITLEMENTS = Runner/DebugProfile.entitlements;
  611 + CODE_SIGN_STYLE = Automatic;
  612 + COMBINE_HIDPI_IMAGES = YES;
  613 + INFOPLIST_FILE = Runner/Info.plist;
  614 + LD_RUNPATH_SEARCH_PATHS = (
  615 + "$(inherited)",
  616 + "@executable_path/../Frameworks",
  617 + );
  618 + PROVISIONING_PROFILE_SPECIFIER = "";
  619 + SWIFT_OPTIMIZATION_LEVEL = "-Onone";
  620 + SWIFT_VERSION = 5.0;
  621 + };
  622 + name = Debug;
  623 + };
  624 + 33CC10FD2044A3C60003C045 /* Release */ = {
  625 + isa = XCBuildConfiguration;
  626 + baseConfigurationReference = 33E5194F232828860026EE4D /* AppInfo.xcconfig */;
  627 + buildSettings = {
  628 + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
  629 + CLANG_ENABLE_MODULES = YES;
  630 + CODE_SIGN_ENTITLEMENTS = Runner/Release.entitlements;
  631 + CODE_SIGN_STYLE = Automatic;
  632 + COMBINE_HIDPI_IMAGES = YES;
  633 + INFOPLIST_FILE = Runner/Info.plist;
  634 + LD_RUNPATH_SEARCH_PATHS = (
  635 + "$(inherited)",
  636 + "@executable_path/../Frameworks",
  637 + );
  638 + PROVISIONING_PROFILE_SPECIFIER = "";
  639 + SWIFT_VERSION = 5.0;
  640 + };
  641 + name = Release;
  642 + };
  643 + 33CC111C2044C6BA0003C045 /* Debug */ = {
  644 + isa = XCBuildConfiguration;
  645 + buildSettings = {
  646 + CODE_SIGN_STYLE = Manual;
  647 + PRODUCT_NAME = "$(TARGET_NAME)";
  648 + };
  649 + name = Debug;
  650 + };
  651 + 33CC111D2044C6BA0003C045 /* Release */ = {
  652 + isa = XCBuildConfiguration;
  653 + buildSettings = {
  654 + CODE_SIGN_STYLE = Automatic;
  655 + PRODUCT_NAME = "$(TARGET_NAME)";
  656 + };
  657 + name = Release;
  658 + };
  659 +/* End XCBuildConfiguration section */
  660 +
  661 +/* Begin XCConfigurationList section */
  662 + 331C80DE294CF71000263BE5 /* Build configuration list for PBXNativeTarget "RunnerTests" */ = {
  663 + isa = XCConfigurationList;
  664 + buildConfigurations = (
  665 + 331C80DB294CF71000263BE5 /* Debug */,
  666 + 331C80DC294CF71000263BE5 /* Release */,
  667 + 331C80DD294CF71000263BE5 /* Profile */,
  668 + );
  669 + defaultConfigurationIsVisible = 0;
  670 + defaultConfigurationName = Release;
  671 + };
  672 + 33CC10E82044A3C60003C045 /* Build configuration list for PBXProject "Runner" */ = {
  673 + isa = XCConfigurationList;
  674 + buildConfigurations = (
  675 + 33CC10F92044A3C60003C045 /* Debug */,
  676 + 33CC10FA2044A3C60003C045 /* Release */,
  677 + 338D0CE9231458BD00FA5F75 /* Profile */,
  678 + );
  679 + defaultConfigurationIsVisible = 0;
  680 + defaultConfigurationName = Release;
  681 + };
  682 + 33CC10FB2044A3C60003C045 /* Build configuration list for PBXNativeTarget "Runner" */ = {
  683 + isa = XCConfigurationList;
  684 + buildConfigurations = (
  685 + 33CC10FC2044A3C60003C045 /* Debug */,
  686 + 33CC10FD2044A3C60003C045 /* Release */,
  687 + 338D0CEA231458BD00FA5F75 /* Profile */,
  688 + );
  689 + defaultConfigurationIsVisible = 0;
  690 + defaultConfigurationName = Release;
  691 + };
  692 + 33CC111B2044C6BA0003C045 /* Build configuration list for PBXAggregateTarget "Flutter Assemble" */ = {
  693 + isa = XCConfigurationList;
  694 + buildConfigurations = (
  695 + 33CC111C2044C6BA0003C045 /* Debug */,
  696 + 33CC111D2044C6BA0003C045 /* Release */,
  697 + 338D0CEB231458BD00FA5F75 /* Profile */,
  698 + );
  699 + defaultConfigurationIsVisible = 0;
  700 + defaultConfigurationName = Release;
  701 + };
  702 +/* End XCConfigurationList section */
  703 + };
  704 + rootObject = 33CC10E52044A3C60003C045 /* Project object */;
  705 +}
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3 +<plist version="1.0">
  4 +<dict>
  5 + <key>IDEDidComputeMac32BitWarning</key>
  6 + <true/>
  7 +</dict>
  8 +</plist>
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<Scheme
  3 + LastUpgradeVersion = "1510"
  4 + version = "1.3">
  5 + <BuildAction
  6 + parallelizeBuildables = "YES"
  7 + buildImplicitDependencies = "YES">
  8 + <BuildActionEntries>
  9 + <BuildActionEntry
  10 + buildForTesting = "YES"
  11 + buildForRunning = "YES"
  12 + buildForProfiling = "YES"
  13 + buildForArchiving = "YES"
  14 + buildForAnalyzing = "YES">
  15 + <BuildableReference
  16 + BuildableIdentifier = "primary"
  17 + BlueprintIdentifier = "33CC10EC2044A3C60003C045"
  18 + BuildableName = "tts.app"
  19 + BlueprintName = "Runner"
  20 + ReferencedContainer = "container:Runner.xcodeproj">
  21 + </BuildableReference>
  22 + </BuildActionEntry>
  23 + </BuildActionEntries>
  24 + </BuildAction>
  25 + <TestAction
  26 + buildConfiguration = "Debug"
  27 + selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
  28 + selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
  29 + shouldUseLaunchSchemeArgsEnv = "YES">
  30 + <MacroExpansion>
  31 + <BuildableReference
  32 + BuildableIdentifier = "primary"
  33 + BlueprintIdentifier = "33CC10EC2044A3C60003C045"
  34 + BuildableName = "tts.app"
  35 + BlueprintName = "Runner"
  36 + ReferencedContainer = "container:Runner.xcodeproj">
  37 + </BuildableReference>
  38 + </MacroExpansion>
  39 + <Testables>
  40 + <TestableReference
  41 + skipped = "NO"
  42 + parallelizable = "YES">
  43 + <BuildableReference
  44 + BuildableIdentifier = "primary"
  45 + BlueprintIdentifier = "331C80D4294CF70F00263BE5"
  46 + BuildableName = "RunnerTests.xctest"
  47 + BlueprintName = "RunnerTests"
  48 + ReferencedContainer = "container:Runner.xcodeproj">
  49 + </BuildableReference>
  50 + </TestableReference>
  51 + </Testables>
  52 + </TestAction>
  53 + <LaunchAction
  54 + buildConfiguration = "Debug"
  55 + selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
  56 + selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
  57 + launchStyle = "0"
  58 + useCustomWorkingDirectory = "NO"
  59 + ignoresPersistentStateOnLaunch = "NO"
  60 + debugDocumentVersioning = "YES"
  61 + debugServiceExtension = "internal"
  62 + allowLocationSimulation = "YES">
  63 + <BuildableProductRunnable
  64 + runnableDebuggingMode = "0">
  65 + <BuildableReference
  66 + BuildableIdentifier = "primary"
  67 + BlueprintIdentifier = "33CC10EC2044A3C60003C045"
  68 + BuildableName = "tts.app"
  69 + BlueprintName = "Runner"
  70 + ReferencedContainer = "container:Runner.xcodeproj">
  71 + </BuildableReference>
  72 + </BuildableProductRunnable>
  73 + </LaunchAction>
  74 + <ProfileAction
  75 + buildConfiguration = "Profile"
  76 + shouldUseLaunchSchemeArgsEnv = "YES"
  77 + savedToolIdentifier = ""
  78 + useCustomWorkingDirectory = "NO"
  79 + debugDocumentVersioning = "YES">
  80 + <BuildableProductRunnable
  81 + runnableDebuggingMode = "0">
  82 + <BuildableReference
  83 + BuildableIdentifier = "primary"
  84 + BlueprintIdentifier = "33CC10EC2044A3C60003C045"
  85 + BuildableName = "tts.app"
  86 + BlueprintName = "Runner"
  87 + ReferencedContainer = "container:Runner.xcodeproj">
  88 + </BuildableReference>
  89 + </BuildableProductRunnable>
  90 + </ProfileAction>
  91 + <AnalyzeAction
  92 + buildConfiguration = "Debug">
  93 + </AnalyzeAction>
  94 + <ArchiveAction
  95 + buildConfiguration = "Release"
  96 + revealArchiveInOrganizer = "YES">
  97 + </ArchiveAction>
  98 +</Scheme>
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<Workspace
  3 + version = "1.0">
  4 + <FileRef
  5 + location = "group:Runner.xcodeproj">
  6 + </FileRef>
  7 +</Workspace>
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  3 +<plist version="1.0">
  4 +<dict>
  5 + <key>IDEDidComputeMac32BitWarning</key>
  6 + <true/>
  7 +</dict>
  8 +</plist>
  1 +import Cocoa
  2 +import FlutterMacOS
  3 +
  4 +@NSApplicationMain
  5 +class AppDelegate: FlutterAppDelegate {
  6 + override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
  7 + return true
  8 + }
  9 +}
  1 +{
  2 + "images" : [
  3 + {
  4 + "size" : "16x16",
  5 + "idiom" : "mac",
  6 + "filename" : "app_icon_16.png",
  7 + "scale" : "1x"
  8 + },
  9 + {
  10 + "size" : "16x16",
  11 + "idiom" : "mac",
  12 + "filename" : "app_icon_32.png",
  13 + "scale" : "2x"
  14 + },
  15 + {
  16 + "size" : "32x32",
  17 + "idiom" : "mac",
  18 + "filename" : "app_icon_32.png",
  19 + "scale" : "1x"
  20 + },
  21 + {
  22 + "size" : "32x32",
  23 + "idiom" : "mac",
  24 + "filename" : "app_icon_64.png",
  25 + "scale" : "2x"
  26 + },
  27 + {
  28 + "size" : "128x128",
  29 + "idiom" : "mac",
  30 + "filename" : "app_icon_128.png",
  31 + "scale" : "1x"
  32 + },
  33 + {
  34 + "size" : "128x128",
  35 + "idiom" : "mac",
  36 + "filename" : "app_icon_256.png",
  37 + "scale" : "2x"
  38 + },
  39 + {
  40 + "size" : "256x256",
  41 + "idiom" : "mac",
  42 + "filename" : "app_icon_256.png",
  43 + "scale" : "1x"
  44 + },
  45 + {
  46 + "size" : "256x256",
  47 + "idiom" : "mac",
  48 + "filename" : "app_icon_512.png",
  49 + "scale" : "2x"
  50 + },
  51 + {
  52 + "size" : "512x512",
  53 + "idiom" : "mac",
  54 + "filename" : "app_icon_512.png",
  55 + "scale" : "1x"
  56 + },
  57 + {
  58 + "size" : "512x512",
  59 + "idiom" : "mac",
  60 + "filename" : "app_icon_1024.png",
  61 + "scale" : "2x"
  62 + }
  63 + ],
  64 + "info" : {
  65 + "version" : 1,
  66 + "author" : "xcode"
  67 + }
  68 +}