-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
36 lines (28 loc) · 733 Bytes
/
Copy pathbuild.sh
File metadata and controls
36 lines (28 loc) · 733 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
# Build script for ASR Audio Streamer
set -e
echo "Building ASR Audio Streamer..."
# Get OS and architecture
OS=$(uname -s | tr '[:upper:]' '[:lower:]')
ARCH=$(uname -m)
# Map architecture names
case "$ARCH" in
x86_64)
ARCH="amd64"
;;
aarch64|arm64)
ARCH="arm64"
;;
esac
OUTPUT="asr-streamer"
if [ "$OS" = "windows" ]; then
OUTPUT="asr-streamer.exe"
fi
echo "Building for $OS/$ARCH..."
# Build the binary
go build -o "$OUTPUT" -ldflags="-s -w" main.go
echo "Build complete: $OUTPUT"
echo ""
echo "To run the application:"
echo " ./$OUTPUT -list # List audio devices"
echo " ./$OUTPUT -endpoint ws://your-asr-url/ws # Start streaming"