CLI

활용 예시

CLI를 스크립트, 파이프, 배치 생성, 감정 연출 워크플로우에 활용합니다.

파일에서 텍스트 읽기
cast "$(cat script.txt)"
파이프로 입력
echo "System is ready." | cast
cast "$(curl -s https://example.com/status.txt)"
배치 오디오 파일 생성
cast "Chapter one." --out ch1.wav
cast "Chapter two." --out ch2.wav
cast "Chapter three." --out ch3.wav
쇼츠용 자막 생성
cast "$(cat shorts-script.txt)" \
  --out shorts-voiceover.wav \
  --timestamps-out shorts-voiceover.srt
웹 preview용 WebVTT 생성
cast "$(cat preview-script.txt)" \
  --out preview.wav \
  --timestamps-out preview.vtt \
  --timestamps-format vtt
클로닝 음성으로 초안 생성
voice_id=$(cast voices clone sample.wav --name "Draft Voice")
cast "$(cat narration.txt)" --voice-id "$voice_id" --out draft.wav
cast voices delete "$voice_id"
오디오북 감정 연출
cast "It was a dark and stormy night." \
  --emotion preset --emotion-preset normal --emotion-intensity 0.5 --out intro.wav

cast "She opened the letter and gasped." \
  --emotion preset --emotion-preset happy --emotion-intensity 1.5 --out climax.wav

cast "He watched the train disappear into the fog." \
  --emotion preset --emotion-preset sad --out farewell.wav
스마트 이모션으로 자연스러운 전달
cast "I can't believe we actually made it!" --emotion smart \
  --prev-text "We've been working on this for three years." \
  --next-text "Let's celebrate tonight!"
고정 시드로 재현 가능한 출력
cast "Hello, world!" --seed 42 --out hello.wav
cast "Hello, world!" --seed 42 --out hello2.wav
다른 언어 사용
cast "Bonjour le monde" --language fra
cast "Hola mundo" --language spa
전달 스타일 조정
cast "Buy now, limited time offer!" --tempo 1.3 --pitch 2
cast "Relax and take a deep breath." --tempo 0.85 --volume 90
⌘I