mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-14 06:11:10 +00:00
640ce43fee
<https://aws.amazon.com/blogs/machine-learning/amazon-transcribe-now-supports-partial-results-stabilization-for-streaming-audio/> Amazon seem to have realized the previous iteration of their API made it difficult to identify items from one result to the next, which made the element much more complicated than it should have been. With that new "stability" option, we can enqueue items as soon as they stabilize, and simply rely on the current index in the transcript to output them exactly once. This also means the "use_partial_results" is now useless, as there will be no difference in accuracy between a non-partial result and and of its stable items that might have been pushed from previous partial versions of the result. The property is removed, instead a new option is exposed to let users control how fast results should stabilize. This greatly simplifies the code, and also improves the output as punctuation doesn't need to be randomly discarded anymore. |
||
---|---|---|
.. | ||
src | ||
build.rs | ||
Cargo.toml | ||
LICENSE-APACHE | ||
LICENSE-MIT | ||
README.md |
gst-plugin-s3
This is a GStreamer plugin to interact with Amazon Web Services. We currently have elements to interact with S3 and Transcribe.
AWS Credentials
AWS credentials are picked up using the mechanism that rusoto's ChainProvider uses. At the moment, that is:
- Environment variables:
AWS_ACCESS_KEY_ID
andAWS_SECRET_ACCESS_KEY
- AWS credentials file. Usually located at ~/.aws/credentials.
- IAM instance profile. Will only work if running on an EC2 instance with an instance profile/role.
An example credentials file might look like:
[default]
aws_access_key_id = ...
aws_secret_access_key = ...
s3src
Reads from a given S3 (region, bucket, object, version?) tuple. The version may be omitted, in which case the default behaviour of fetching the latest version applies.
$ gst-launch-1.0 \
s3src uri=s3://ap-south-1/my-bucket/my-object-key/which-can-have-slashes?version=my-optional-version !
filesink name=my-object.out
s3sink
Writes data to a specified S3 (region, bucket, object, version?) tuple. The version may be omitted.
$ gst-launch-1.0 \
videotestsrc ! \
theoraenc ! \
oggmux ! \
s3sink uri=s3://us-west-1/example-bucket/my/file.ogv?version=my-optional-version
awstranscriber
Transcribes audio to text.