Class SpeechEnhancer
java.lang.Object
com.vivoka.vsdk.speechenhancement.SpeechEnhancer
- All Implemented Interfaces:
IModifierModule
Abstract class representing a speech enhancement module.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidClears the internal reference buffer used by the speech enhancer.abstract intgetName()abstract intabstract IConsumerModuleReturns the consumer module for reference audio.protected abstract voidrelease()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vivoka.vsdk.audio.IModifierModule
process
-
Field Details
-
_name
-
-
Constructor Details
-
SpeechEnhancer
-
-
Method Details
-
release
- Throws:
Exception
-
getName
- Returns:
- The name of the speech enhancer.
-
getInputChannelCount
- Returns:
- The number of expected audio channels to process
- Throws:
Exception- if the channel count cannot be retrieved
-
getOutputChannelCount
- Returns:
- The number of audio channels to expect once processing is done
- Throws:
Exception- if the channel count cannot be retrieved
-
referenceConsumer
Returns the consumer module for reference audio. This consumer can be connected to a producer in the audio pipeline to provide reference audio, which may be used to remove unwanted sounds from the main audio if echo canceling is enabled.- Returns:
- IConsumerModule for reference audio.
- Throws:
Exception- if the consumer module cannot be retrieved.
-
clearReferenceBuffer
Clears the internal reference buffer used by the speech enhancer.- Throws:
Exception- if the reference buffer cannot be cleared.
-