Recognize short encoded audio clips using ACRCloud. More...
Public Member Functions | |
| bool | is_configured (self) |
| Return whether required provider configuration is available. | |
| str|None | provider_name (self) |
| Return a human-readable provider name when configured. | |
| SongRecognitionResult|None | recognize (self, bytes audio, *, int|None sample_bytes=None) |
| Return the best matching song, or None when unmatched. | |
Recognize short encoded audio clips using ACRCloud.
| bool song_recognition.acrcloud_song_recognizer.AcrCloudSongRecognizer.is_configured | ( | self | ) |
Return whether required provider configuration is available.
Reimplemented from song_recognition.song_recognition_if.SongRecognitionIf.
| str | None song_recognition.acrcloud_song_recognizer.AcrCloudSongRecognizer.provider_name | ( | self | ) |
Return a human-readable provider name when configured.
Reimplemented from song_recognition.song_recognition_if.SongRecognitionIf.
| SongRecognitionResult | None song_recognition.acrcloud_song_recognizer.AcrCloudSongRecognizer.recognize | ( | self, | |
| bytes | audio, | ||
| * | , | ||
| int | None | sample_bytes = None ) |
Return the best matching song, or None when unmatched.
| audio | Encoded audio sample sent to the recognition provider. |
| sample_bytes | Optional decoded sample length for provider metadata. |
Reimplemented from song_recognition.song_recognition_if.SongRecognitionIf.