Files
SnapOtter/apps/docs/th/tools/audio/ringtone-maker.md
T
SnapOtterandGitHub 4963ab3bbd feat(docs-i18n): translate all documentation into 20 languages
All 181 docs markdown files translated into 20 languages (apps/docs/<locale>/**). Companion to the i18n code PR; admin-merged because the file count exceeds GitHub's per-PR CI trigger limit. Validated by pnpm i18n:check (all surfaces, 0 stale/missing) and a clean all-locale docs build.
2026-07-11 13:52:47 +08:00

2.1 KiB

description, i18n_source_hash, i18n_provenance, i18n_output_hash
description i18n_source_hash i18n_provenance i18n_output_hash
สร้างคลิปริงโทนจากไฟล์เสียงใด ๆ 8fcdcc545fbc human 10aa95815c0b

Ringtone Maker

สร้างคลิปริงโทน (.m4r) จากไฟล์เสียงใด ๆ โดยเลือกเวลาเริ่มต้นและระยะเวลา

API Endpoint

POST /api/v1/tools/audio/ringtone-maker

รับข้อมูลฟอร์มแบบ multipart พร้อมไฟล์เสียงและฟิลด์ JSON settings

พารามิเตอร์

พารามิเตอร์ ชนิด จำเป็น ค่าเริ่มต้น คำอธิบาย
startS number ไม่ 0 เวลาเริ่มต้นเป็นวินาที (ต่ำสุด 0)
durationS number ไม่ 30 ระยะเวลาคลิปเป็นวินาที (1 ถึง 30)

ตัวอย่างคำขอ

curl -X POST http://localhost:1349/api/v1/tools/audio/ringtone-maker \
  -H "Authorization: Bearer si_your-api-key" \
  -F "file=@audio.mp3" \
  -F 'settings={"startS": 15, "durationS": 20}'

ตัวอย่างการตอบกลับ

{
  "jobId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "downloadUrl": "/api/v1/download/a1b2c3d4-e5f6-7890-abcd-ef1234567890/audio.m4r",
  "originalSize": 4500000,
  "processedSize": 620000
}

หมายเหตุ

  • เอาต์พุตเป็นรูปแบบ M4R เสมอ เข้ากันได้กับริงโทน iPhone
  • ระยะเวลาริงโทนสูงสุดคือ 30 วินาที (ขีดจำกัดของ Apple)
  • สามารถใช้รูปแบบเสียงใด ๆ เป็นอินพุตได้