Aracılığıyla paylaş


MicrophoneArrayGeometry Class

  • java.lang.Object
    • com.microsoft.cognitiveservices.speech.audio.MicrophoneArrayGeometry

public class MicrophoneArrayGeometry

Represents the geometry of a microphone array.

Constructor Summary

Constructor Description
MicrophoneArrayGeometry(MicrophoneArrayType microphoneArrayType, MicrophoneCoordinates[] microphoneCoordinates)

Creates an object of MicrophoneArrayGeometry.

MicrophoneArrayGeometry(MicrophoneArrayType microphoneArrayType, int beamformingStartAngle, int beamformingEndAngle, MicrophoneCoordinates[] microphoneCoordinates)

Creates an object of MicrophoneArrayGeometry.

Method Summary

Modifier and Type Method and Description
int getBeamformingEndAngle()

Returns the end angle for beamforming in degrees.

int getBeamformingStartAngle()

Returns the start angle for beamforming in degrees.

MicrophoneArrayType getMicrophoneArrayType()

Returns the type of microphone array.

MicrophoneCoordinates[] getMicrophoneCoordinates()

Returns the coordinates of microphones in the microphone array.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

MicrophoneArrayGeometry

public MicrophoneArrayGeometry(MicrophoneArrayType microphoneArrayType, MicrophoneCoordinates[] microphoneCoordinates)

Creates an object of MicrophoneArrayGeometry. Beamforming start angle is set to zero. Beamforming end angle is set to 180 degrees if microphoneArrayType is Linear, otherwise it is set to 360 degrees.

Parameters:

microphoneArrayType - Type of microphone array.
microphoneCoordinates - Coordinates of microphones in the microphone array.

MicrophoneArrayGeometry

public MicrophoneArrayGeometry(MicrophoneArrayType microphoneArrayType, int beamformingStartAngle, int beamformingEndAngle, MicrophoneCoordinates[] microphoneCoordinates)

Creates an object of MicrophoneArrayGeometry.

Parameters:

microphoneArrayType - Type of microphone array.
beamformingStartAngle - Start angle for beamforming in degrees.
beamformingEndAngle - End angle for beamforming in degrees.
microphoneCoordinates - Coordinates of microphones in the microphone array.

Method Details

getBeamformingEndAngle

public int getBeamformingEndAngle()

Returns the end angle for beamforming in degrees.

Returns:

End angle for beamforming in degrees.

getBeamformingStartAngle

public int getBeamformingStartAngle()

Returns the start angle for beamforming in degrees.

Returns:

Start angle for beamforming in degrees.

getMicrophoneArrayType

public MicrophoneArrayType getMicrophoneArrayType()

Returns the type of microphone array.

Returns:

Type of microphone array.

getMicrophoneCoordinates

public MicrophoneCoordinates[] getMicrophoneCoordinates()

Returns the coordinates of microphones in the microphone array.

Returns:

Coordinates of microphones in the microphone array.

Applies to