Class MicrosoftAzureSpeechServicesClient
java.lang.Object
org.opencastproject.transcription.microsoft.azure.MicrosoftAzureSpeechServicesClient
-
Constructor Summary
ConstructorsConstructorDescriptionMicrosoftAzureSpeechServicesClient(String azureSpeechServicesEndpoint, String azureCognitiveServicesSubscriptionKey) -
Method Summary
Modifier and TypeMethodDescriptioncreateTranscription(List<String> contentUrls, String destinationContainerUrl, String displayName, String locale, List<String> candidateLocales, String timeToLive, Map<String, Object> properties) voiddeleteTranscription(String transcriptionId) getTranscription(String transcriptionUrl) getTranscriptionById(String transcriptionId) getTranscriptionFiles(String transcriptionFilesUrl) getTranscriptionFilesById(String transcriptionId) getTranscriptionJson(MicrosoftAzureSpeechTranscriptionFile transcriptionFile) getTranscriptions(int skip, int top) getTranscriptions(int skip, int top, String filter) static URIwriteTranscriptionFile(MicrosoftAzureSpeechTranscriptionJson transcriptionJson, org.opencastproject.workspace.api.Workspace workspace, String format, float minConfidence, int maxCueLength)
-
Constructor Details
-
MicrosoftAzureSpeechServicesClient
-
-
Method Details
-
getTranscriptions
public List<MicrosoftAzureSpeechTranscription> getTranscriptions(int skip, int top) throws IOException, MicrosoftAzureNotAllowedException, MicrosoftAzureSpeechClientException -
getTranscriptions
public List<MicrosoftAzureSpeechTranscription> getTranscriptions(int skip, int top, String filter) throws IOException, MicrosoftAzureNotAllowedException, MicrosoftAzureSpeechClientException -
getTranscriptionById
public MicrosoftAzureSpeechTranscription getTranscriptionById(String transcriptionId) throws IOException, MicrosoftAzureNotAllowedException, MicrosoftAzureSpeechClientException, MicrosoftAzureNotFoundException -
getTranscription
public MicrosoftAzureSpeechTranscription getTranscription(String transcriptionUrl) throws IOException, MicrosoftAzureNotAllowedException, MicrosoftAzureSpeechClientException, MicrosoftAzureNotFoundException -
createTranscription
public MicrosoftAzureSpeechTranscription createTranscription(List<String> contentUrls, String destinationContainerUrl, String displayName, String locale, List<String> candidateLocales, String timeToLive, Map<String, Object> properties) throws IOException, MicrosoftAzureNotAllowedException, MicrosoftAzureSpeechClientException -
getTranscriptionFilesById
public MicrosoftAzureSpeechTranscriptionFiles getTranscriptionFilesById(String transcriptionId) throws IOException, MicrosoftAzureNotAllowedException, MicrosoftAzureSpeechClientException, MicrosoftAzureNotFoundException -
getTranscriptionFiles
public MicrosoftAzureSpeechTranscriptionFiles getTranscriptionFiles(String transcriptionFilesUrl) throws IOException, MicrosoftAzureNotAllowedException, MicrosoftAzureSpeechClientException, MicrosoftAzureNotFoundException -
getTranscriptionJson
public static MicrosoftAzureSpeechTranscriptionJson getTranscriptionJson(MicrosoftAzureSpeechTranscriptionFile transcriptionFile) throws IOException, MicrosoftAzureNotAllowedException, MicrosoftAzureSpeechClientException, MicrosoftAzureNotFoundException -
writeTranscriptionFile
public static URI writeTranscriptionFile(MicrosoftAzureSpeechTranscriptionJson transcriptionJson, org.opencastproject.workspace.api.Workspace workspace, String format, float minConfidence, int maxCueLength) throws IOException - Throws:
IOException
-
deleteTranscription
public void deleteTranscription(String transcriptionId) throws IOException, MicrosoftAzureNotAllowedException, MicrosoftAzureSpeechClientException
-