서버 정보 및 API Key

사용법

Initialization

{
    "type": "start_async",
    "client_id": CLIENT_ID,
    "api_key": API_KEY,
    "api_type": "SPEECH_TO_TEXT",
    "timeliness": "INTERPRETING",
    "source_data_format": {
        "language_code": "en",
        "audio_format": {
            "sample_rate": 16000,
            "channels": 1
        }
    },
    "target_data_format": {
        "language_code": "en",
        "additional_language_code": ["ko", "es-419"]
    },
    "options": {}
}
{"type": "started", "session_id": "7066244455fd45b9a157a146f4c6bad7"}
{"type": "error", "error_code": 500, "error_msg": "Invalid language code: zz"}

오디오 및 번역 결과

{ "type": "async", "seq": 1, "source_lang": "en", "target_lang": "en", "is_partial": true, "source": "good", "target": "good", "start_msec": 190, "end_msec": 400", ... }

{ "type": "async", "seq": 1, "source_lang": "en", "target_lang": "en", "is_partial": true, "source": "good morning", "target": "good morning", ... }

{ "type": "async", "seq": 1, "source_lang": "en", "target_lang": "ko", "is_partial": true, "source": "good", "target": "좋아요", ... }

{ "type": "async", "seq": 1, "source_lang": "en", "target_lang": "en", "is_partial": false, "source": "Good morning, everyone.", "target": "Good morning, everyone", ... }

{ "type": "async", "seq": 2, "source_lang": "en", "target_lang": "en", "is_partial": false, "source": "How are", "target": "How are", ... }

{ "type": "async", "seq": 1, "source_lang": "en", "target_lang": "ko", "is_partial": false, "source": "Good morning, everyone.", "target": "모두 좋은 아침입니다.", ... }

{ "type": "async", "seq": 2, "source_lang": "en", "target_lang": "en", "is_partial": false, "source": "How are you doing", "target": "How are you doing", ... }

{ "type": "async", "seq": 2, "source_lang": "en", "target_lang": "ko", "is_partial": false, "source": "How are", "target": "어떻게", ... }

세션 종료