Versions in this module Expand all Collapse all v0 v0.2.6 Oct 18, 2023 v0.2.5 Feb 12, 2023 Changes in this version type RecognitionResult + EndOffset int + StartOffset int v0.2.4 Jun 14, 2021 v0.2.1 Feb 1, 2021 v0.2.0 Dec 11, 2020 Changes in this version type Client + func (c *Client) NewLongPoll(RadioID int) LongPoll + type LongPoll struct + ResultsChan chan StreamCallback + func (lp *LongPoll) Stop() + type StreamCallback struct + Notification *StreamNotification + Result *StreamRecognitionResult + Status string + Time int64 + type StreamNotification struct + Code int + Message string + RadioID int + StreamRunning bool + type StreamRecognitionResult struct + PlayLength int + RadioID int + Results []RecognitionResult + Timestamp string v0.2.0-preview3 Dec 11, 2020 v0.2.0-preview2 Dec 11, 2020 v0.2.0-preview Dec 11, 2020 v0.1.0 Jul 24, 2020 Changes in this version + const EnterpriseAPIEndpoint + const MainAPIEndpoint + type AppleMusicResult struct + AlbumName string + ArtistName string + Artwork struct{ ... } + ComposerName string + DiscNumber int + DurationInMillis int + GenreNames []string + ISRC string + Name string + PlayParams struct{ ... } + Previews []struct{ ... } + ReleaseDate string + TrackNumber int + URL string + type Client struct + ApiToken string + Endpoint string + Experimental bool + func NewClient(apiToken string) *Client + func (c *Client) AddStream(Url string, RadioID int, callbacks string, ...) error + func (c *Client) DeleteStream(RadioID int, additionalParameters map[string]string) error + func (c *Client) FindLyrics(q string, additionalParameters map[string]string) ([]LyricsResult, error) + func (c *Client) GetCallbackUrl(additionalParameters map[string]string) (string, error) + func (c *Client) GetStreams(additionalParameters map[string]string) ([]Stream, error) + func (c *Client) Recognize(v interface{}, Return string, additionalParameters map[string]string) (RecognitionResult, error) + func (c *Client) RecognizeByFile(file io.Reader, Return string, additionalParameters map[string]string) (RecognitionResult, error) + func (c *Client) RecognizeByUrl(Url string, Return string, additionalParameters map[string]string) (RecognitionResult, error) + func (c *Client) RecognizeHumming(file io.Reader) ([]HummingResult, error) + func (c *Client) RecognizeHummingByUrl(Url string) ([]HummingResult, error) + func (c *Client) RecognizeLongAudio(v interface{}, additionalParameters map[string]string) ([]RecognitionEnterpriseResult, error) + func (c *Client) RecognizeLongAudioByFile(file io.Reader, additionalParameters map[string]string) ([]RecognitionEnterpriseResult, error) + func (c *Client) RecognizeLongAudioByUrl(Url string, additionalParameters map[string]string) ([]RecognitionEnterpriseResult, error) + func (c *Client) Send(parameters map[string]string) ([]byte, error) + func (c *Client) SendFile(file io.Reader, parameters map[string]string) ([]byte, error) + func (c *Client) SendFileRequest(file io.Reader, parameters map[string]string, v interface{}) error + func (c *Client) SendRequest(parameters map[string]string, v interface{}) error + func (c *Client) SendUrl(URL string, parameters map[string]string) ([]byte, error) + func (c *Client) SendUrlRequest(url string, parameters map[string]string, v interface{}) error + func (c *Client) SetCallbackUrl(Url string, additionalParameters map[string]string) error + func (c *Client) SetEndpoint(APIEndpoint string) + func (c *Client) SetStreamUrl(Url string, RadioID int, additionalParameters map[string]string) error + func (c *Client) UseExperimentalUploading() + type DeezerResult struct + Album struct{ ... } + Artist struct{ ... } + Duration int + ExplicitLyrics bool + ID int + Link string + Preview string + Rank int + Readable bool + Title string + TitleShort string + TitleVersion string + Type string + type Error struct + ErrorCode int + ErrorMessage string + func (e Error) Error() string + type FindLyricsResponse struct + Result []LyricsResult + type GetCallbackUrlResponse struct + Result string + type GetStreamsResponse struct + Result []Stream + type HummingRecognitionResponse struct + Result HummingRecognitionResult + type HummingRecognitionResult struct + Count int + List []HummingResult + type HummingResult struct + Artist string + Score int + Title string + type LyricsResult struct + Artist string + ArtistId int + FullTitle string + Lyrics string + Media string + SongId int + Title string + TitleWithFeat string + type MusicbrainzRecordings struct + ArtistCredit []struct{ ... } + Disambiguation string + ID string + Isrcs []string + Length int + Releases []struct{ ... } + Score int + Tags []struct{ ... } + Title string + Video interface{} + type NapsterResult struct + AlbumID string + AlbumName string + ArtistID string + ArtistName string + Blurbs []interface{} + Contributors struct{ ... } + Disc int + Formats []struct{ ... } + Href string + ID string + Index int + IsAvailableInHiRes bool + IsExplicit bool + IsStreamable bool + Isrc string + Links struct{ ... } + LosslessFormats []interface{} + Name string + PlaybackSeconds int + PreviewURL string + Shortcut string + Type string + type RecognitionEnterpriseResponse struct + ExecutionTime string + Result []RecognitionEnterpriseResult + type RecognitionEnterpriseResult struct + Offset string + Songs []RecognitionResult + type RecognitionResponse struct + Result RecognitionResult + Warning *Warning + type RecognitionResult struct + Album string + AppleMusic *AppleMusicResult + Artist string + AudioID int + Deezer *DeezerResult + ISRC string + Label string + Lyrics *LyricsResult + MusicBrainz []MusicbrainzRecordings + Napster *NapsterResult + ReleaseDate string + Score int + SongLength string + SongLink string + Spotify *SpotifyResult + Timecode string + Title string + UPC string + type Response struct + Error *Error + Status string + type SpotifyResult struct + Album struct{ ... } + Artists []struct{ ... } + AvailableMarkets []string + DiscNumber int + DurationMs int + Explicit bool + ExternalIds struct{ ... } + ExternalUrls struct{ ... } + Href string + ID string + IsLocal bool + Name string + Popularity int + TrackNumber int + Type string + URI string + type Stream struct + RadioID int + StreamRunning bool + URL string + type Warning struct + ErrorCode int + ErrorMessage string + func (e Warning) Error() string