Class AmazonTranscribe

  • All Implemented Interfaces:
    Serializable, Initializable, Parser

    public class AmazonTranscribe
    extends AbstractParser
    implements Initializable
    Amazon Transcribe implementation. See Javadoc for configuration options.

    Silently becomes unavailable when client keys are unavailable. N.B. it is not necessary to create the bucket before hand. This implementation will automatically create the bucket if one does not already exist, per the name defined above.

    Since:
    Tika 2.0
    See Also:
    Serialized Form
    • Field Detail

      • SUPPORTED_TYPES

        protected static final Set<MediaType> SUPPORTED_TYPES
    • Constructor Detail

      • AmazonTranscribe

        public AmazonTranscribe()
    • Method Detail

      • getSupportedTypes

        public Set<MediaType> getSupportedTypes​(ParseContext context)
        Description copied from interface: Parser
        Returns the set of media types supported by this parser when used with the given parse context.
        Specified by:
        getSupportedTypes in interface Parser
        Parameters:
        context - parse context
        Returns:
        immutable set of media types
      • isAvailable

        public boolean isAvailable()
        Returns:
        true if this Transcriber is probably able to transcribe right now.
        Since:
        Tika 2.1
      • setClientId

        @Field
        public void setClientId​(String id)
        Sets the client Id for the transcriber API.
        Parameters:
        id - The ID to set.
      • setClientSecret

        @Field
        public void setClientSecret​(String secret)
        Sets the client secret for the transcriber API.
        Parameters:
        secret - The secret to set.
      • setBucket

        @Field
        public void setBucket​(String bucket)
        Sets the client secret for the transcriber API.
        Parameters:
        bucket - The bucket to set.
      • setRegion

        @Field
        public void setRegion​(String region)