Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changeset/audio-compression.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@braintrust/audio": minor
"braintrust": minor
---

feat(audio): Compressed voice recordings with `@braintrust/audio`
30 changes: 30 additions & 0 deletions .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,34 @@ jobs:
working-directory: integrations/temporal-js
run: pnpm run test

audio:
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
node-version: [20, 22, 24, 26]
env:
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: ${{ matrix.node-version == 20 && 'true' || '' }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: ${{ matrix.node-version }}
- name: Setup pnpm
uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build braintrust
working-directory: js
run: pnpm run build
- name: Build @braintrust/audio
working-directory: integrations/audio
run: pnpm run build
- name: Run @braintrust/audio tests
working-directory: integrations/audio
run: pnpm run test

templates-nunjucks-js:
runs-on: ubuntu-latest
timeout-minutes: 15
Expand Down Expand Up @@ -530,6 +558,7 @@ jobs:
- js-smoke-discover
- js-smoke-test
- temporal-js
- audio
- templates-nunjucks-js
- otel-js
- js-zod-versions
Expand Down Expand Up @@ -563,6 +592,7 @@ jobs:
check_result "js-smoke-discover" "${{ needs.js-smoke-discover.result }}"
check_result "js-smoke-test" "${{ needs.js-smoke-test.result }}"
check_result "temporal-js" "${{ needs.temporal-js.result }}"
check_result "audio" "${{ needs.audio.result }}"
check_result "templates-nunjucks-js" "${{ needs.templates-nunjucks-js.result }}"
check_result "otel-js" "${{ needs.otel-js.result }}"
check_result "js-zod-versions" "${{ needs.js-zod-versions.result }}"
Expand Down
1 change: 1 addition & 0 deletions e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"test:e2e:cassettes": "node ./scripts/run-e2e-tests.mjs --check-cassettes"
},
"devDependencies": {
"@braintrust/audio": "workspace:^",
"@braintrust/deepseek-harness": "workspace:^",
"@braintrust/langchain-js": "workspace:^",
"@braintrust/otel": "workspace:^",
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ span_tree:
input: {
"audio": {
"call-0000": {
"content_type": "audio/pcm",
"filename": "call-0000.pcm",
"content_type": "audio/ogg",
"filename": "call-0000.ogg",
"key": "<uuid:1>",
"type": "braintrust_attachment"
}
Expand All @@ -20,10 +20,9 @@ span_tree:
"channel_count": 2,
"duration_ms": 0,
"id": "<span:1>",
"mime_type": "audio/pcm",
"mime_type": "audio/ogg",
"recording_group_id": "call",
"sample_format": "s16le",
"sample_rate_hz": 24000,
"sample_rate_hz": 48000,
"sources": [
{
"boundary": "local_audio_output",
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ span_tree:
input: {
"audio": {
"call-0000": {
"content_type": "audio/pcm",
"filename": "call-0000.pcm",
"content_type": "audio/ogg",
"filename": "call-0000.ogg",
"key": "<uuid:1>",
"type": "braintrust_attachment"
}
Expand All @@ -20,10 +20,9 @@ span_tree:
"channel_count": 2,
"duration_ms": 0,
"id": "<span:1>",
"mime_type": "audio/pcm",
"mime_type": "audio/ogg",
"recording_group_id": "call",
"sample_format": "s16le",
"sample_rate_hz": 24000,
"sample_rate_hz": 48000,
"sources": [
{
"boundary": "local_audio_output",
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ span_tree:
input: {
"audio": {
"call-0000": {
"content_type": "audio/pcm",
"filename": "call-0000.pcm",
"content_type": "audio/ogg",
"filename": "call-0000.ogg",
"key": "<uuid:1>",
"type": "braintrust_attachment"
}
Expand All @@ -20,10 +20,9 @@ span_tree:
"channel_count": 2,
"duration_ms": 0,
"id": "<span:1>",
"mime_type": "audio/pcm",
"mime_type": "audio/ogg",
"recording_group_id": "call",
"sample_format": "s16le",
"sample_rate_hz": 24000,
"sample_rate_hz": 48000,
"sources": [
{
"boundary": "local_audio_output",
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ span_tree:
input: {
"audio": {
"call-0000": {
"content_type": "audio/pcm",
"filename": "call-0000.pcm",
"content_type": "audio/ogg",
"filename": "call-0000.ogg",
"key": "<uuid:1>",
"type": "braintrust_attachment"
}
Expand All @@ -20,10 +20,9 @@ span_tree:
"channel_count": 2,
"duration_ms": 0,
"id": "<span:1>",
"mime_type": "audio/pcm",
"mime_type": "audio/ogg",
"recording_group_id": "call",
"sample_format": "s16le",
"sample_rate_hz": 24000,
"sample_rate_hz": 48000,
"sources": [
{
"boundary": "local_audio_output",
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ span_tree:
input: {
"audio": {
"call-0000": {
"content_type": "audio/pcm",
"filename": "call-0000.pcm",
"content_type": "audio/ogg",
"filename": "call-0000.ogg",
"key": "<uuid:1>",
"type": "braintrust_attachment"
}
Expand All @@ -20,10 +20,9 @@ span_tree:
"channel_count": 2,
"duration_ms": 0,
"id": "<span:1>",
"mime_type": "audio/pcm",
"mime_type": "audio/ogg",
"recording_group_id": "call",
"sample_format": "s16le",
"sample_rate_hz": 24000,
"sample_rate_hz": 48000,
"sources": [
{
"boundary": "local_audio_output",
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ span_tree:
input: {
"audio": {
"call-0000": {
"content_type": "audio/pcm",
"filename": "call-0000.pcm",
"content_type": "audio/ogg",
"filename": "call-0000.ogg",
"key": "<uuid:1>",
"type": "braintrust_attachment"
}
Expand All @@ -20,10 +20,9 @@ span_tree:
"channel_count": 2,
"duration_ms": 0,
"id": "<span:1>",
"mime_type": "audio/pcm",
"mime_type": "audio/ogg",
"recording_group_id": "call",
"sample_format": "s16le",
"sample_rate_hz": 24000,
"sample_rate_hz": 48000,
"sources": [
{
"boundary": "local_audio_output",
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading