MicrophoneArrayGeometry Class
- java.
lang. Object - com.
microsoft. cognitiveservices. speech. audio. MicrophoneArrayGeometry
- com.
public class MicrophoneArrayGeometry
Represents the geometry of a microphone array.
Constructor Summary
Constructor | Description |
---|---|
MicrophoneArrayGeometry(MicrophoneArrayType microphoneArrayType, MicrophoneCoordinates[] microphoneCoordinates) |
Creates an object of Microphone |
MicrophoneArrayGeometry(MicrophoneArrayType microphoneArrayType, int beamformingStartAngle, int beamformingEndAngle, MicrophoneCoordinates[] microphoneCoordinates) |
Creates an object of Microphone |
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. |
Microphone |
getMicrophoneArrayType()
Returns the type of microphone array. |
Microphone |
getMicrophoneCoordinates()
Returns the coordinates of microphones in the microphone array. |
Methods inherited from java.lang.Object
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:
MicrophoneArrayGeometry
public MicrophoneArrayGeometry(MicrophoneArrayType microphoneArrayType, int beamformingStartAngle, int beamformingEndAngle, MicrophoneCoordinates[] microphoneCoordinates)
Creates an object of MicrophoneArrayGeometry.
Parameters:
Method Details
getBeamformingEndAngle
public int getBeamformingEndAngle()
Returns the end angle for beamforming in degrees.
Returns:
getBeamformingStartAngle
public int getBeamformingStartAngle()
Returns the start angle for beamforming in degrees.
Returns:
getMicrophoneArrayType
public MicrophoneArrayType getMicrophoneArrayType()
Returns the type of microphone array.
Returns:
getMicrophoneCoordinates
public MicrophoneCoordinates[] getMicrophoneCoordinates()
Returns the coordinates of microphones in the microphone array.
Returns:
Applies to
Azure SDK for Java
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin