Skip to content

net/aws/transcriber fix translation lookahead

This MR fixes several flaws imputable to the translation lookahead implementation.

Test pipeline:

GST_DEBUG=awstranscribe:2 \
AWS_ACCESS_KEY_ID="__KEY_ID__" AWS_SECRET_ACCESS_KEY="__SECRET_KEY__" \
gst-launch-1.0 -e filesrc location=__FILE__ ! decodebin3 name=d \
    d.video_0 ! queue max-size-time=0 max-size-bytes=0 max-size-buffers=0 ! fakesink \
    d.audio_0 ! audio/x-raw ! queue ! clocksync ! audioconvert \
        ! awstranscriber transcribe-latency=7000 translate-latency=500 translate-lookahead=3000 name=tcb \
          translate_src_0::language-code=fr \
          translate_src_1::language-code=es translate_src_1::tokenization-method=1 \
            tcb.src ! fakesink dump=true \
            tcb.translate_src_0 ! fakesink dump=true \
            tcb.translate_src_1 ! fakesink dump=true
Edited by François Laignel

Merge request reports

Loading