Ticket #257 (closed defect: wontfix)
What happens if user's audio card cannot support 48kHz
Reported by: | kmaclean | Owned by: | kmaclean |
---|---|---|---|
Priority: | major | Milestone: | SpeechSubmission 0.1.8 |
Component: | SpeechSubmission | Version: | Website 0.2 |
Keywords: | Cc: |
Description
Need code to poll user's audio card, and select highest rate it supports
Something like:
float javax.sound.sampled.AudioFormat.getSampleRate()
Obtains the sample rate. For compressed formats, the return value is the sample rate of the uncompressed audio data. When this AudioFormat is used for queries (e.g. AudioSystem.isConversionSupported(AudioFormat,AudioFormat) AudioSystem.isConversionSupported) or capabilities (e.g. DataLine.Info.getFormats() DataLine.Info.getFormats), a sample rate of AudioSystem.NOT_SPECIFIED means that any sample rate is acceptable. AudioSystem.NOT_SPECIFIED is also returned when the sample rate is not defined for this audio format.
See Also:
getFrameRate() AudioSystem.NOT_SPECIFIED
Returns:
the number of samples per second, or AudioSystem.NOT_SPECIFIED