Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathieu Duponchelle <mathieu@centricular.com>2021-02-19 02:45:34 +0300
committerMathieu Duponchelle <mathieu@centricular.com>2021-02-19 17:58:14 +0300
commit77bf0c945eae4f9a8a4d50c120dfe469175c037b (patch)
tree6e03b10f63809d69b7acb0169084374689aa9108 /Cargo.toml
parenta7df50e68fab31a52ab31361e75f2d00c11955af (diff)
text: new element for text processing: regex
The element expects an array of "commands", as GstStructures, in the form: operation, pattern=<pattern>, ... The only operation implemented for now is replace-all, eg: replace-all, pattern=foo, replacement=bar Other operations can be implemented if useful in the future, eg. "match" could post a message to the bus when the pattern is encountered. The main use case for this is automatic speech recognition, as implemented by eg awstranscribe as users may want to replace swear words with tamer language. Commands are applied in order. The interface is usable through the CLI with the usual escaping strategies, though trying to pass in actual regular expressions through it is a bit tricky, as this introduces yet another level of escaping.
Diffstat (limited to 'Cargo.toml')
-rw-r--r--Cargo.toml1
1 files changed, 1 insertions, 0 deletions
diff --git a/Cargo.toml b/Cargo.toml
index a8c14922b..a20ad55ff 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -24,6 +24,7 @@ members = [
"video/hsv",
"text/wrap",
"text/json",
+ "text/regex",
]
[profile.release]