-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsetup_env.sh.example
More file actions
89 lines (75 loc) · 3.5 KB
/
setup_env.sh.example
File metadata and controls
89 lines (75 loc) · 3.5 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
#!/bin/bash
# ==============================================================================
# Environment Variables for WhisperX Transcription + AI Post-Processing
# ==============================================================================
# Copy this file to setup_env.sh and fill in your API keys.
# Only HF_TOKEN is required for transcription.
# Hosted post-processing uses OpenRouter for `opus`, `gemini`, `grok`, and `qwen`,
# plus direct OpenAI access for `gpt`.
# ==============================================================================
# REQUIRED: HuggingFace Token (for WhisperX diarization models)
# ==============================================================================
# Get your token from: https://huggingface.co/settings/tokens
# Accept model agreements at:
# - https://huggingface.co/pyannote/speaker-diarization-3.1
# - https://huggingface.co/pyannote/segmentation-3.0
export HF_TOKEN=""
# ==============================================================================
# AI POST-PROCESSING: OpenRouter API Key
# ==============================================================================
# OpenRouter provides unified access to the non-OpenAI hosted models used here.
# Get your key from: https://openrouter.ai/keys
#
# SUPPORTED MODELS (via OpenRouter):
# opus - Claude Opus 4.6 (Anthropic) - 1M context
# gemini - Gemini 3 Pro (Google) - 1M context
# grok - Grok 4 (xAI) - 256K context
# qwen - Qwen3.5 Plus (Alibaba) - 1M context
#
# All models have sufficient context for typical transcripts (20K-45K tokens).
export OPENROUTER_API_KEY=""
# ==============================================================================
# Direct Provider API Keys
# ==============================================================================
# GPT uses the direct OpenAI API instead of OpenRouter in the current scripts.
# OpenAI (`gpt` -> GPT-5.4 direct API)
# Get key from: https://platform.openai.com/api-keys
export OPENAI_API_KEY=""
# ==============================================================================
# OPTIONAL: Transcription Service API Keys
# ==============================================================================
# AssemblyAI (Cloud transcription with speaker diarization)
# Get key from: https://www.assemblyai.com/
export ASSEMBLYAI_API_KEY=""
# Replicate (Cloud WhisperX transcription)
# Get key from: https://replicate.com/account/api-tokens
export REPLICATE_API_TOKEN=""
# ==============================================================================
# Display Configuration
# ==============================================================================
echo "Environment variables set"
if [ -n "$HF_TOKEN" ] && [ "$HF_TOKEN" != "" ]; then
echo " HF_TOKEN: SET"
else
echo " HF_TOKEN: NOT SET (required for WhisperX diarization)"
fi
if [ -n "$OPENROUTER_API_KEY" ] && [ "$OPENROUTER_API_KEY" != "" ]; then
echo " OPENROUTER_API_KEY: SET (access to OpenRouter-backed AI models)"
else
echo " OPENROUTER_API_KEY: NOT SET"
fi
if [ -n "$OPENAI_API_KEY" ] && [ "$OPENAI_API_KEY" != "" ]; then
echo " OPENAI_API_KEY: SET (gpt direct OpenAI API)"
fi
if [ -n "$ASSEMBLYAI_API_KEY" ] && [ "$ASSEMBLYAI_API_KEY" != "" ]; then
echo " ASSEMBLYAI_API_KEY: SET"
else
echo " ASSEMBLYAI_API_KEY: NOT SET"
fi
if [ -n "$REPLICATE_API_TOKEN" ] && [ "$REPLICATE_API_TOKEN" != "" ]; then
echo " REPLICATE_API_TOKEN: SET"
else
echo " REPLICATE_API_TOKEN: NOT SET"
fi
echo ""
echo "See README.md for usage examples and documentation."