Fix a typo for Go (#298)

This commit is contained in:
Fangjun Kuang
2023-09-07 11:29:00 +08:00
committed by GitHub
parent a0a747a0c0
commit ffeff3b8a3
14 changed files with 33 additions and 145 deletions

View File

@@ -11,6 +11,8 @@ on:
- 'sherpa-onnx/csrc/*' - 'sherpa-onnx/csrc/*'
- 'sherpa-onnx/jni/*' - 'sherpa-onnx/jni/*'
- 'build-android*.sh' - 'build-android*.sh'
tags:
- '*'
pull_request: pull_request:
branches: branches:
- master - master
@@ -22,10 +24,6 @@ on:
- 'sherpa-onnx/jni/*' - 'sherpa-onnx/jni/*'
- 'build-android*.sh' - 'build-android*.sh'
release:
types:
- published
workflow_dispatch: workflow_dispatch:
inputs: inputs:
release: release:
@@ -112,7 +110,7 @@ jobs:
# https://huggingface.co/docs/hub/spaces-github-actions # https://huggingface.co/docs/hub/spaces-github-actions
- name: Publish to huggingface - name: Publish to huggingface
if: github.repository_owner == 'csukuangfj' || github.repository_owner == 'k2-fsa' && env.RELEASE == 'true' if: github.repository_owner == 'csukuangfj' || github.repository_owner == 'k2-fsa' && github.event_name == 'push' && contains(github.ref, 'refs/tags/')
env: env:
HF_TOKEN: ${{ secrets.HF_TOKEN }} HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: | run: |
@@ -136,7 +134,7 @@ jobs:
git push https://csukuangfj:$HF_TOKEN@huggingface.co/csukuangfj/sherpa-onnx-libs main git push https://csukuangfj:$HF_TOKEN@huggingface.co/csukuangfj/sherpa-onnx-libs main
- name: Release android libs - name: Release android libs
if: env.RELEASE == 'true' if: github.repository_owner == 'csukuangfj' || github.repository_owner == 'k2-fsa' && github.event_name == 'push' && contains(github.ref, 'refs/tags/')
uses: svenstaro/upload-release-action@v2 uses: svenstaro/upload-release-action@v2
with: with:
file_glob: true file_glob: true

View File

@@ -11,6 +11,8 @@ on:
- 'cmake/**' - 'cmake/**'
- 'sherpa-onnx/csrc/*' - 'sherpa-onnx/csrc/*'
- 'toolchains/arm-linux-gnueabihf.toolchain.cmake' - 'toolchains/arm-linux-gnueabihf.toolchain.cmake'
tags:
- '*'
pull_request: pull_request:
branches: branches:
- master - master
@@ -20,20 +22,8 @@ on:
- 'cmake/**' - 'cmake/**'
- 'sherpa-onnx/csrc/*' - 'sherpa-onnx/csrc/*'
- 'toolchains/arm-linux-gnueabihf.toolchain.cmake' - 'toolchains/arm-linux-gnueabihf.toolchain.cmake'
release:
types:
- published
workflow_dispatch: workflow_dispatch:
inputs:
release:
description: "Whether to release"
type: boolean
env:
RELEASE:
|- # Release if there is a release tag name or a release flag in workflow_dispatch
${{ github.event.release.tag_name != '' || github.event.inputs.release == 'true' }}
concurrency: concurrency:
group: arm-linux-gnueabihf-${{ github.ref }} group: arm-linux-gnueabihf-${{ github.ref }}
@@ -131,7 +121,6 @@ jobs:
export PATH=$GITHUB_WORKSPACE/qemu-install/bin:$PATH export PATH=$GITHUB_WORKSPACE/qemu-install/bin:$PATH
export QEMU_LD_PREFIX=$GITHUB_WORKSPACE/toolchain/arm-linux-gnueabihf/libc export QEMU_LD_PREFIX=$GITHUB_WORKSPACE/toolchain/arm-linux-gnueabihf/libc
ls -lh ./build-arm-linux-gnueabihf/bin ls -lh ./build-arm-linux-gnueabihf/bin
qemu-arm ./build-arm-linux-gnueabihf/bin/sherpa-onnx --help qemu-arm ./build-arm-linux-gnueabihf/bin/sherpa-onnx --help
@@ -156,7 +145,7 @@ jobs:
path: sherpa-onnx-*linux-arm-gnueabihf.tar.bz2 path: sherpa-onnx-*linux-arm-gnueabihf.tar.bz2
- name: Release pre-compiled binaries and libs for arm linux gnueabihf - name: Release pre-compiled binaries and libs for arm linux gnueabihf
if: env.RELEASE == 'true' if: github.repository_owner == 'csukuangfj' || github.repository_owner == 'k2-fsa' && github.event_name == 'push' && contains(github.ref, 'refs/tags/')
uses: svenstaro/upload-release-action@v2 uses: svenstaro/upload-release-action@v2
with: with:
file_glob: true file_glob: true

View File

@@ -14,15 +14,6 @@ on:
- published - published
workflow_dispatch: workflow_dispatch:
inputs:
release:
description: "Whether to release"
type: boolean
env:
RELEASE:
|- # Release if there is a release tag name or a release flag in workflow_dispatch
${{ github.event.release.tag_name != '' || github.event.inputs.release == 'true' }}
concurrency: concurrency:
group: build-xcframework-${{ github.ref }} group: build-xcframework-${{ github.ref }}
@@ -76,7 +67,7 @@ jobs:
# https://huggingface.co/docs/hub/spaces-github-actions # https://huggingface.co/docs/hub/spaces-github-actions
- name: Publish to huggingface - name: Publish to huggingface
if: github.repository_owner == 'csukuangfj' || github.repository_owner == 'k2-fsa' if: github.repository_owner == 'csukuangfj' || github.repository_owner == 'k2-fsa' && github.event_name == 'push' && contains(github.ref, 'refs/tags/')
env: env:
HF_TOKEN: ${{ secrets.HF_TOKEN }} HF_TOKEN: ${{ secrets.HF_TOKEN }}
run: | run: |
@@ -100,7 +91,7 @@ jobs:
git push https://csukuangfj:$HF_TOKEN@huggingface.co/csukuangfj/sherpa-onnx-libs main git push https://csukuangfj:$HF_TOKEN@huggingface.co/csukuangfj/sherpa-onnx-libs main
- name: Release xcframework - name: Release xcframework
if: env.RELEASE == 'true' if: github.repository_owner == 'csukuangfj' || github.repository_owner == 'k2-fsa' && github.event_name == 'push' && contains(github.ref, 'refs/tags/')
uses: svenstaro/upload-release-action@v2 uses: svenstaro/upload-release-action@v2
with: with:
file_glob: true file_glob: true

View File

@@ -6,20 +6,8 @@ on:
- dot-net - dot-net
tags: tags:
- '*' - '*'
release:
types:
- published
workflow_dispatch: workflow_dispatch:
inputs:
release:
description: "Whether to release"
type: boolean
env:
RELEASE:
|- # Release if there is a release tag name or a release flag in workflow_dispatch
${{ github.event.release.tag_name != '' || github.event.inputs.release == 'true' }}
concurrency: concurrency:
group: dot-net-${{ github.ref }} group: dot-net-${{ github.ref }}
@@ -138,7 +126,7 @@ jobs:
path: scripts/dotnet/packages/*.nupkg path: scripts/dotnet/packages/*.nupkg
- name: publish .Net packages to nuget.org - name: publish .Net packages to nuget.org
if: github.repository == 'csukuangfj/sherpa-onnx' || github.repository == 'k2-fsa/sherpa-onnx' if: github.repository_owner == 'csukuangfj' || github.repository_owner == 'k2-fsa' && github.event_name == 'push' && contains(github.ref, 'refs/tags/')
shell: bash shell: bash
env: env:
API_KEY: ${{ secrets.NUGET_API_KEY }} API_KEY: ${{ secrets.NUGET_API_KEY }}
@@ -148,7 +136,7 @@ jobs:
dotnet nuget push ./org.k2fsa.sherpa.onnx.*.nupkg --skip-duplicate --api-key $API_KEY --source https://api.nuget.org/v3/index.json dotnet nuget push ./org.k2fsa.sherpa.onnx.*.nupkg --skip-duplicate --api-key $API_KEY --source https://api.nuget.org/v3/index.json
- name: Release nuget packages - name: Release nuget packages
if: env.RELEASE == 'true' if: github.repository_owner == 'csukuangfj' || github.repository_owner == 'k2-fsa' && github.event_name == 'push' && contains(github.ref, 'refs/tags/')
uses: svenstaro/upload-release-action@v2 uses: svenstaro/upload-release-action@v2
with: with:
file_glob: true file_glob: true

View File

@@ -22,6 +22,8 @@ on:
- 'sherpa-onnx/csrc/*' - 'sherpa-onnx/csrc/*'
- 'sherpa-onnx/jni/*' - 'sherpa-onnx/jni/*'
workflow_dispatch:
concurrency: concurrency:
group: jni-${{ github.ref }} group: jni-${{ github.ref }}
cancel-in-progress: true cancel-in-progress: true

View File

@@ -30,20 +30,8 @@ on:
- 'cmake/**' - 'cmake/**'
- 'sherpa-onnx/csrc/*' - 'sherpa-onnx/csrc/*'
- 'sherpa-onnx/c-api/*' - 'sherpa-onnx/c-api/*'
release:
types:
- published
workflow_dispatch: workflow_dispatch:
inputs:
release:
description: "Whether to release"
type: boolean
env:
RELEASE:
|- # Release if there is a release tag name or a release flag in workflow_dispatch
${{ github.event.release.tag_name != '' || github.event.inputs.release == 'true' }}
concurrency: concurrency:
group: linux-gpu-${{ github.ref }} group: linux-gpu-${{ github.ref }}
@@ -136,7 +124,7 @@ jobs:
.github/scripts/test-online-transducer.sh .github/scripts/test-online-transducer.sh
- name: Copy files - name: Copy files
if: env.RELEASE == 'true' if: github.repository_owner == 'csukuangfj' || github.repository_owner == 'k2-fsa' && github.event_name == 'push' && contains(github.ref, 'refs/tags/')
shell: bash shell: bash
run: | run: |
SHERPA_ONNX_VERSION=v$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2) SHERPA_ONNX_VERSION=v$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2)
@@ -153,7 +141,7 @@ jobs:
tar cjvf ${dst}.tar.bz2 $dst tar cjvf ${dst}.tar.bz2 $dst
- name: Release pre-compiled binaries and libs for linux x64 - name: Release pre-compiled binaries and libs for linux x64
if: env.RELEASE == 'true' && matrix.build_type == 'Release' if: github.repository_owner == 'csukuangfj' || github.repository_owner == 'k2-fsa' && github.event_name == 'push' && contains(github.ref, 'refs/tags/')
uses: svenstaro/upload-release-action@v2 uses: svenstaro/upload-release-action@v2
with: with:
file_glob: true file_glob: true

View File

@@ -30,20 +30,8 @@ on:
- 'cmake/**' - 'cmake/**'
- 'sherpa-onnx/csrc/*' - 'sherpa-onnx/csrc/*'
- 'sherpa-onnx/c-api/*' - 'sherpa-onnx/c-api/*'
release:
types:
- published
workflow_dispatch: workflow_dispatch:
inputs:
release:
description: "Whether to release"
type: boolean
env:
RELEASE:
|- # Release if there is a release tag name or a release flag in workflow_dispatch
${{ github.event.release.tag_name != '' || github.event.inputs.release == 'true' }}
concurrency: concurrency:
group: linux-${{ github.ref }} group: linux-${{ github.ref }}
@@ -135,7 +123,7 @@ jobs:
.github/scripts/test-online-transducer.sh .github/scripts/test-online-transducer.sh
- name: Copy files - name: Copy files
if: env.RELEASE == 'true' if: github.repository_owner == 'csukuangfj' || github.repository_owner == 'k2-fsa' && github.event_name == 'push' && contains(github.ref, 'refs/tags/')
shell: bash shell: bash
run: | run: |
SHERPA_ONNX_VERSION=v$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2) SHERPA_ONNX_VERSION=v$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2)
@@ -152,7 +140,7 @@ jobs:
tar cjvf ${dst}.tar.bz2 $dst tar cjvf ${dst}.tar.bz2 $dst
- name: Release pre-compiled binaries and libs for linux x64 - name: Release pre-compiled binaries and libs for linux x64
if: env.RELEASE == 'true' && matrix.build_type == 'Release' if: github.repository_owner == 'csukuangfj' || github.repository_owner == 'k2-fsa' && github.event_name == 'push' && contains(github.ref, 'refs/tags/')
uses: svenstaro/upload-release-action@v2 uses: svenstaro/upload-release-action@v2
with: with:
file_glob: true file_glob: true

View File

@@ -4,6 +4,8 @@ on:
push: push:
branches: branches:
- master - master
tags:
- '*'
paths: paths:
- '.github/workflows/macos.yaml' - '.github/workflows/macos.yaml'
- '.github/scripts/test-online-transducer.sh' - '.github/scripts/test-online-transducer.sh'
@@ -25,20 +27,8 @@ on:
- 'CMakeLists.txt' - 'CMakeLists.txt'
- 'cmake/**' - 'cmake/**'
- 'sherpa-onnx/csrc/*' - 'sherpa-onnx/csrc/*'
release:
types:
- published
workflow_dispatch: workflow_dispatch:
inputs:
release:
description: "Whether to release"
type: boolean
env:
RELEASE:
|- # Release if there is a release tag name or a release flag in workflow_dispatch
${{ github.event.release.tag_name != '' || github.event.inputs.release == 'true' }}
concurrency: concurrency:
group: macos-${{ github.ref }} group: macos-${{ github.ref }}
@@ -133,7 +123,7 @@ jobs:
.github/scripts/test-online-transducer.sh .github/scripts/test-online-transducer.sh
- name: Copy files - name: Copy files
if: env.RELEASE == 'true' if: github.repository_owner == 'csukuangfj' || github.repository_owner == 'k2-fsa' && github.event_name == 'push' && contains(github.ref, 'refs/tags/')
shell: bash shell: bash
run: | run: |
SHERPA_ONNX_VERSION=v$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2) SHERPA_ONNX_VERSION=v$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2)
@@ -151,7 +141,7 @@ jobs:
tar cjvf ${dst}.tar.bz2 $dst tar cjvf ${dst}.tar.bz2 $dst
- name: Release pre-compiled binaries and libs for macOS - name: Release pre-compiled binaries and libs for macOS
if: env.RELEASE == 'true' && matrix.build_type == 'Release' if: github.repository_owner == 'csukuangfj' || github.repository_owner == 'k2-fsa' && github.event_name == 'push' && contains(github.ref, 'refs/tags/')
uses: svenstaro/upload-release-action@v2 uses: svenstaro/upload-release-action@v2
with: with:
file_glob: true file_glob: true

View File

@@ -21,20 +21,8 @@ on:
- 'cmake/**' - 'cmake/**'
- 'mfc-examples/**' - 'mfc-examples/**'
- 'sherpa-onnx/csrc/*' - 'sherpa-onnx/csrc/*'
release:
types:
- published
workflow_dispatch: workflow_dispatch:
inputs:
release:
description: "Whether to release"
type: boolean
env:
RELEASE:
|- # Release if there is a release tag name or a release flag in workflow_dispatch
${{ github.event.release.tag_name != '' || github.event.inputs.release == 'true' }}
concurrency: concurrency:
group: mfc-${{ github.ref }} group: mfc-${{ github.ref }}
@@ -114,7 +102,7 @@ jobs:
path: ./mfc-examples/${{ matrix.arch }}/Release/NonStreamingSpeechRecognition.exe path: ./mfc-examples/${{ matrix.arch }}/Release/NonStreamingSpeechRecognition.exe
- name: Release pre-compiled binaries and libs for Windows ${{ matrix.arch }} - name: Release pre-compiled binaries and libs for Windows ${{ matrix.arch }}
if: env.RELEASE == 'true' if: github.repository_owner == 'csukuangfj' || github.repository_owner == 'k2-fsa' && github.event_name == 'push' && contains(github.ref, 'refs/tags/')
uses: svenstaro/upload-release-action@v2 uses: svenstaro/upload-release-action@v2
with: with:
file_glob: true file_glob: true
@@ -122,7 +110,7 @@ jobs:
file: ./mfc-examples/${{ matrix.arch }}/Release/sherpa-onnx-streaming-*.exe file: ./mfc-examples/${{ matrix.arch }}/Release/sherpa-onnx-streaming-*.exe
- name: Release pre-compiled binaries and libs for Windows ${{ matrix.arch }} - name: Release pre-compiled binaries and libs for Windows ${{ matrix.arch }}
if: env.RELEASE == 'true' if: github.repository_owner == 'csukuangfj' || github.repository_owner == 'k2-fsa' && github.event_name == 'push' && contains(github.ref, 'refs/tags/')
uses: svenstaro/upload-release-action@v2 uses: svenstaro/upload-release-action@v2
with: with:
file_glob: true file_glob: true

View File

@@ -27,20 +27,8 @@ on:
- 'CMakeLists.txt' - 'CMakeLists.txt'
- 'cmake/**' - 'cmake/**'
- 'sherpa-onnx/csrc/*' - 'sherpa-onnx/csrc/*'
release:
types:
- published
workflow_dispatch: workflow_dispatch:
inputs:
release:
description: "Whether to release"
type: boolean
env:
RELEASE:
|- # Release if there is a release tag name or a release flag in workflow_dispatch
${{ github.event.release.tag_name != '' || github.event.inputs.release == 'true' }}
concurrency: concurrency:
group: windows-x64-cuda-${{ github.ref }} group: windows-x64-cuda-${{ github.ref }}
@@ -125,7 +113,7 @@ jobs:
.github/scripts/test-online-transducer.sh .github/scripts/test-online-transducer.sh
- name: Copy files - name: Copy files
if: env.RELEASE == 'true' if: github.repository_owner == 'csukuangfj' || github.repository_owner == 'k2-fsa' && github.event_name == 'push' && contains(github.ref, 'refs/tags/')
shell: bash shell: bash
run: | run: |
SHERPA_ONNX_VERSION=v$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2) SHERPA_ONNX_VERSION=v$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2)
@@ -140,7 +128,7 @@ jobs:
tar cjvf ${dst}.tar.bz2 $dst tar cjvf ${dst}.tar.bz2 $dst
- name: Release pre-compiled binaries and libs for Windows x64 CUDA - name: Release pre-compiled binaries and libs for Windows x64 CUDA
if: env.RELEASE == 'true' if: github.repository_owner == 'csukuangfj' || github.repository_owner == 'k2-fsa' && github.event_name == 'push' && contains(github.ref, 'refs/tags/')
uses: svenstaro/upload-release-action@v2 uses: svenstaro/upload-release-action@v2
with: with:
file_glob: true file_glob: true

View File

@@ -27,20 +27,8 @@ on:
- 'CMakeLists.txt' - 'CMakeLists.txt'
- 'cmake/**' - 'cmake/**'
- 'sherpa-onnx/csrc/*' - 'sherpa-onnx/csrc/*'
release:
types:
- published
workflow_dispatch: workflow_dispatch:
inputs:
release:
description: "Whether to release"
type: boolean
env:
RELEASE:
|- # Release if there is a release tag name or a release flag in workflow_dispatch
${{ github.event.release.tag_name != '' || github.event.inputs.release == 'true' }}
concurrency: concurrency:
group: windows-x64-${{ github.ref }} group: windows-x64-${{ github.ref }}
@@ -126,7 +114,7 @@ jobs:
.github/scripts/test-online-transducer.sh .github/scripts/test-online-transducer.sh
- name: Copy files - name: Copy files
if: env.RELEASE == 'true' if: github.repository_owner == 'csukuangfj' || github.repository_owner == 'k2-fsa' && github.event_name == 'push' && contains(github.ref, 'refs/tags/')
shell: bash shell: bash
run: | run: |
SHERPA_ONNX_VERSION=v$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2) SHERPA_ONNX_VERSION=v$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2)
@@ -141,7 +129,7 @@ jobs:
tar cjvf ${dst}.tar.bz2 $dst tar cjvf ${dst}.tar.bz2 $dst
- name: Release pre-compiled binaries and libs for Windows x64 - name: Release pre-compiled binaries and libs for Windows x64
if: env.RELEASE == 'true' if: github.repository_owner == 'csukuangfj' || github.repository_owner == 'k2-fsa' && github.event_name == 'push' && contains(github.ref, 'refs/tags/')
uses: svenstaro/upload-release-action@v2 uses: svenstaro/upload-release-action@v2
with: with:
file_glob: true file_glob: true

View File

@@ -4,6 +4,8 @@ on:
push: push:
branches: branches:
- master - master
tags:
- '*'
paths: paths:
- '.github/workflows/windows-x86.yaml' - '.github/workflows/windows-x86.yaml'
- '.github/scripts/test-online-transducer.sh' - '.github/scripts/test-online-transducer.sh'
@@ -25,20 +27,8 @@ on:
- 'CMakeLists.txt' - 'CMakeLists.txt'
- 'cmake/**' - 'cmake/**'
- 'sherpa-onnx/csrc/*' - 'sherpa-onnx/csrc/*'
release:
types:
- published
workflow_dispatch: workflow_dispatch:
inputs:
release:
description: "Whether to release"
type: boolean
env:
RELEASE:
|- # Release if there is a release tag name or a release flag in workflow_dispatch
${{ github.event.release.tag_name != '' || github.event.inputs.release == 'true' }}
concurrency: concurrency:
group: windows-x86-${{ github.ref }} group: windows-x86-${{ github.ref }}
@@ -124,7 +114,7 @@ jobs:
.github/scripts/test-online-transducer.sh .github/scripts/test-online-transducer.sh
- name: Copy files - name: Copy files
if: env.RELEASE == 'true' && matrix.vs-version == 'vs2015' if: github.repository_owner == 'csukuangfj' || github.repository_owner == 'k2-fsa' && github.event_name == 'push' && contains(github.ref, 'refs/tags/')
shell: bash shell: bash
run: | run: |
SHERPA_ONNX_VERSION=v$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2) SHERPA_ONNX_VERSION=v$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2)
@@ -139,7 +129,7 @@ jobs:
tar cjvf ${dst}.tar.bz2 $dst tar cjvf ${dst}.tar.bz2 $dst
- name: Release pre-compiled binaries and libs for Windows x86 - name: Release pre-compiled binaries and libs for Windows x86
if: env.RELEASE == 'true' && matrix.vs-version == 'vs2015' if: github.repository_owner == 'csukuangfj' || github.repository_owner == 'k2-fsa' && github.event_name == 'push' && contains(github.ref, 'refs/tags/')
uses: svenstaro/upload-release-action@v2 uses: svenstaro/upload-release-action@v2
with: with:
file_glob: true file_glob: true

View File

@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.13 FATAL_ERROR) cmake_minimum_required(VERSION 3.13 FATAL_ERROR)
project(sherpa-onnx) project(sherpa-onnx)
set(SHERPA_ONNX_VERSION "1.7.11") set(SHERPA_ONNX_VERSION "1.7.12")
# Disable warning about # Disable warning about
# #

View File

@@ -407,7 +407,7 @@ func NewOfflineRecognizer(config *OfflineRecognizerConfig) *OfflineRecognizer {
c.model_config.whisper.decoder = C.CString(config.ModelConfig.Whisper.Decoder) c.model_config.whisper.decoder = C.CString(config.ModelConfig.Whisper.Decoder)
defer C.free(unsafe.Pointer(c.model_config.whisper.decoder)) defer C.free(unsafe.Pointer(c.model_config.whisper.decoder))
c.model_config.tdnn.decoder = C.CString(config.ModelConfig.Tdnn.Model) c.model_config.tdnn.model = C.CString(config.ModelConfig.Tdnn.Model)
defer C.free(unsafe.Pointer(c.model_config.tdnn.model)) defer C.free(unsafe.Pointer(c.model_config.tdnn.model))
c.model_config.tokens = C.CString(config.ModelConfig.Tokens) c.model_config.tokens = C.CString(config.ModelConfig.Tokens)