This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DEFAULT_USER="$(whoami)" | |
export GOENV_ROOT="$HOME/.goenv" | |
export PATH="$GOENV_ROOT/bin:$PATH" | |
eval "$(goenv init -)" | |
export PATH="$GOROOT/bin:$PATH" | |
export PATH="$PATH:$GOPATH/bin" | |
# Aliases |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
import os | |
from openai import OpenAI | |
from pydub import AudioSegment | |
def chunk_audio_by_size(audio, max_size_bytes=25000000, target_duration_ms=60000): | |
""" | |
Splits an audio file into smaller chunks based on a maximum size limit. | |
Args: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if ! command -v gcloud &> /dev/null | |
then | |
echo "gcloud could not be found. Please install the Google Cloud SDK." | |
exit 1 | |
fi | |
if ! command -v kubectl &> /dev/null | |
then |
OlderNewer