Class AmazonTranscribe
java.lang.Object
org.apache.tika.parser.transcribe.aws.AmazonTranscribe
- All Implemented Interfaces:
Serializable,Initializable,SelfConfiguring,Parser
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:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetSupportedTypes(ParseContext context) Returns the set of media types supported by this parser when used with the given parse context.voidCalled after all properties have been set to allow for validation and initialization that depends on multiple properties.booleanvoidparse(TikaInputStream tis, ContentHandler handler, Metadata metadata, ParseContext context) Starts AWS Transcribe Job with language specification.
-
Field Details
-
SUPPORTED_TYPES
-
-
Constructor Details
-
AmazonTranscribe
public AmazonTranscribe() -
AmazonTranscribe
-
AmazonTranscribe
-
-
Method Details
-
getSupportedTypes
Description copied from interface:ParserReturns the set of media types supported by this parser when used with the given parse context.- Specified by:
getSupportedTypesin interfaceParser- Parameters:
context- parse context- Returns:
- immutable set of media types
-
parse
public void parse(TikaInputStream tis, ContentHandler handler, Metadata metadata, ParseContext context) throws IOException, SAXException, TikaException Starts AWS Transcribe Job with language specification.- Specified by:
parsein interfaceParser- Parameters:
stream- the source input tis.handler- handler to usemetadata-context- -- set theLanguageCodein the ParseContext if known- Throws:
TikaException- When there is an error transcribing.IOException- If an I/O exception of some sort has occurred.SAXException- if the SAX events could not be processed- See Also:
-
isAvailable
public boolean isAvailable()- Returns:
- true if this Transcriber is probably able to transcribe right now.
- Since:
- Tika 2.1
-
initialize
Description copied from interface:InitializableCalled after all properties have been set to allow for validation and initialization that depends on multiple properties.- Specified by:
initializein interfaceInitializable- Throws:
TikaConfigException- if there is a problem with the configuration
-
getDefaultConfig
-