Skip to content

Commit b054623

Browse files
authored
Merge pull request #341 from jasonchen31/main
Add OpenAI STT API with VAD and streaming server.
2 parents a660024 + 558bd67 commit b054623

14 files changed

Lines changed: 24158 additions & 0 deletions

File tree

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: llama.cpp runtime
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- ".github/workflows/llama-cpp-runtime.yml"
7+
- "runtime/llama.cpp/**"
8+
push:
9+
branches: [main]
10+
paths:
11+
- ".github/workflows/llama-cpp-runtime.yml"
12+
- "runtime/llama.cpp/**"
13+
14+
concurrency:
15+
group: llama-cpp-runtime-${{ github.workflow }}-${{ github.ref }}
16+
cancel-in-progress: true
17+
18+
permissions:
19+
contents: read
20+
21+
jobs:
22+
build-and-test:
23+
runs-on: ubuntu-24.04
24+
timeout-minutes: 30
25+
steps:
26+
- name: Check out repository
27+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
28+
29+
- name: Configure
30+
run: cmake -S runtime/llama.cpp -B build/llama-cpp -DCMAKE_BUILD_TYPE=Release
31+
32+
- name: Build
33+
run: cmake --build build/llama-cpp --parallel 2
34+
35+
- name: Unit tests
36+
run: ctest --test-dir build/llama-cpp --output-on-failure
37+
38+
- name: Server contract
39+
env:
40+
BIN_DIR: ${{ github.workspace }}/build/llama-cpp/bin
41+
run: runtime/llama.cpp/tests/run_server_contract.sh

‎runtime/llama.cpp/CMakeLists.txt‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,11 @@ endfunction()
4343

4444
funasr_add(llama-funasr-sensevoice funasr-sensevoice/funasr-sensevoice.cpp ggml)
4545
funasr_add(llama-funasr-vad funasr-vad/funasr-vad.cpp ggml)
46+
funasr_add(sensevoice-server sensevoice-server/sensevoice-server.cpp ggml)
47+
48+
enable_testing()
49+
add_executable(server-utils-test tests/server_utils_test.cpp)
50+
target_include_directories(server-utils-test PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/sensevoice-server)
51+
target_link_libraries(server-utils-test PRIVATE Threads::Threads)
52+
set_target_properties(server-utils-test PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/tests)
53+
add_test(NAME server-utils COMMAND server-utils-test)

0 commit comments

Comments
 (0)