awstranslate: remove text accumulation feature

Users should now place a `textaccumulate` element in front of the
translator in order to achieve the previous behavior.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/2350>
This commit is contained in:
Mathieu Duponchelle 2025-07-28 21:54:30 +02:00
parent b01829ac35
commit cfe167d2e1
3 changed files with 182 additions and 665 deletions

View file

@ -1592,7 +1592,7 @@
"writable": true
},
"accumulator-lateness": {
"blurb": "By how much to shift input timestamps forward for accumulating",
"blurb": "By how much to shift input timestamps forward",
"conditionally-available": false,
"construct": false,
"construct-only": false,
@ -18717,4 +18717,4 @@
"tracers": {},
"url": "https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs"
}
}
}

File diff suppressed because it is too large Load diff

View file

@ -11,21 +11,6 @@
*
* `awstranslate` is an element that can be used to translate text from one
* language to another.
*
* When working with live data, the element will accumulate input text until
* the deadline is reached, comparing the current running time with the running
* time of the input items and the upstream latency.
*
* At this point the input items will be drained up until the first item ending
* with a punctuation symbol.
*
* The accumulator will also be drained upon receiving `rstranscribe/final-transcript`
* and `rstranscribe/speaker-change` custom events.
*
* When the user wants to use a very low / no latency upstream, and is willing to
* accept desynchronization in order to build up long-enough sentences for translation,
* they can set the #GstAwsTranslate:accumulator-lateness property to shift the input
* timestamps forward when accumulating.
*/
use gst::glib;
use gst::prelude::*;