@audd/sdk 1.5.13 → 1.5.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { c as StreamCallbackMatch, d as StreamCallbackNotification, H as HttpClient, S as Stream, L as LongpollPoll, b as LyricsResult, F as FetchLike, R as RecognitionResult, a as EnterpriseMatch } from './longpollCore-BXx8PRmC.cjs';
2
2
  export { E as EnterpriseChunkResult, e as StreamCallbackSong, f as StreamingProvider } from './longpollCore-BXx8PRmC.cjs';
3
3
 
4
- declare const VERSION = "1.5.13";
4
+ declare const VERSION = "1.5.14";
5
5
 
6
6
  /** Inspection events emitted around each HTTP request the SDK makes. */
7
7
 
@@ -365,8 +365,8 @@ declare class CustomCatalog {
365
365
  constructor(http: HttpClient, noRetryPolicy: RetryPolicy, onEvent?: OnEventHook | undefined);
366
366
  /**
367
367
  * **This is NOT how you submit audio for music recognition.** For
368
- * recognition, use `audd.recognize()` (or `audd.recognizeEnterprise()` for
369
- * files longer than 25 seconds). This method adds a song to your
368
+ * recognition, use `audd.recognize()` (or `audd.recognizeEnterprise()` to scan
369
+ * beyond the first 12 seconds of a file). This method adds a song to your
370
370
  * **private fingerprint catalog** so AudD's recognition can later identify
371
371
  * *your own* tracks for *your account only*. Requires special access —
372
372
  * contact api@audd.io if you need it enabled.
@@ -496,7 +496,8 @@ declare class AudD {
496
496
  /** Lyrics search + raw-request escape hatch. */
497
497
  get advanced(): Advanced;
498
498
  /**
499
- * Recognize a short audio clip (≤25s) from a URL, file path, Blob, or bytes.
499
+ * Recognize a song from an audio clip given as a URL, file path, Blob, or
500
+ * bytes; only the first 12 seconds are analyzed.
500
501
  *
501
502
  * Returns `null` when the server returns `status=success` with `result=null`
502
503
  * (no match) — distinct from a thrown error.
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { c as StreamCallbackMatch, d as StreamCallbackNotification, H as HttpClient, S as Stream, L as LongpollPoll, b as LyricsResult, F as FetchLike, R as RecognitionResult, a as EnterpriseMatch } from './longpollCore-BXx8PRmC.js';
2
2
  export { E as EnterpriseChunkResult, e as StreamCallbackSong, f as StreamingProvider } from './longpollCore-BXx8PRmC.js';
3
3
 
4
- declare const VERSION = "1.5.13";
4
+ declare const VERSION = "1.5.14";
5
5
 
6
6
  /** Inspection events emitted around each HTTP request the SDK makes. */
7
7
 
@@ -365,8 +365,8 @@ declare class CustomCatalog {
365
365
  constructor(http: HttpClient, noRetryPolicy: RetryPolicy, onEvent?: OnEventHook | undefined);
366
366
  /**
367
367
  * **This is NOT how you submit audio for music recognition.** For
368
- * recognition, use `audd.recognize()` (or `audd.recognizeEnterprise()` for
369
- * files longer than 25 seconds). This method adds a song to your
368
+ * recognition, use `audd.recognize()` (or `audd.recognizeEnterprise()` to scan
369
+ * beyond the first 12 seconds of a file). This method adds a song to your
370
370
  * **private fingerprint catalog** so AudD's recognition can later identify
371
371
  * *your own* tracks for *your account only*. Requires special access —
372
372
  * contact api@audd.io if you need it enabled.
@@ -496,7 +496,8 @@ declare class AudD {
496
496
  /** Lyrics search + raw-request escape hatch. */
497
497
  get advanced(): Advanced;
498
498
  /**
499
- * Recognize a short audio clip (≤25s) from a URL, file path, Blob, or bytes.
499
+ * Recognize a song from an audio clip given as a URL, file path, Blob, or
500
+ * bytes; only the first 12 seconds are analyzed.
500
501
  *
501
502
  * Returns `null` when the server returns `status=success` with `result=null`
502
503
  * (no match) — distinct from a thrown error.
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ import * as path from 'path';
3
3
  import { createHash } from 'crypto';
4
4
 
5
5
  // src/version.ts
6
- var VERSION = "1.5.13";
6
+ var VERSION = "1.5.14";
7
7
 
8
8
  // src/errors.ts
9
9
  var AudDError = class extends Error {
@@ -133,7 +133,7 @@ function brandedMessageOf(result) {
133
133
  if (typeof r.title === "string" && r.title.length > 0) parts.push(r.title);
134
134
  return parts.length === 0 ? null : parts.join(" \u2014 ");
135
135
  }
136
- var CUSTOM_CATALOG_PREFIX = "Adding songs to your custom catalog requires enterprise access that isn't enabled on your account.\n\nNote: the custom-catalog endpoint is for adding songs to your private fingerprint database, not for music recognition. If you intended to identify music, use recognize(...) (or recognizeEnterprise(...) for files longer than 25 seconds) instead.\n\nTo request custom-catalog access, contact api@audd.io.\n\n";
136
+ var CUSTOM_CATALOG_PREFIX = "Adding songs to your custom catalog requires enterprise access that isn't enabled on your account.\n\nNote: the custom-catalog endpoint is for adding songs to your private fingerprint database, not for music recognition. If you intended to identify music, use recognize(...) (or recognizeEnterprise(...) to scan beyond the first 12 seconds of a file) instead.\n\nTo request custom-catalog access, contact api@audd.io.\n\n";
137
137
  function raiseFromErrorResponse(body, opts) {
138
138
  const code = body.error?.error_code ?? 0;
139
139
  const message = body.error?.error_message ?? "";
@@ -1350,8 +1350,8 @@ var CustomCatalog = class {
1350
1350
  onEvent;
1351
1351
  /**
1352
1352
  * **This is NOT how you submit audio for music recognition.** For
1353
- * recognition, use `audd.recognize()` (or `audd.recognizeEnterprise()` for
1354
- * files longer than 25 seconds). This method adds a song to your
1353
+ * recognition, use `audd.recognize()` (or `audd.recognizeEnterprise()` to scan
1354
+ * beyond the first 12 seconds of a file). This method adds a song to your
1355
1355
  * **private fingerprint catalog** so AudD's recognition can later identify
1356
1356
  * *your own* tracks for *your account only*. Requires special access —
1357
1357
  * contact api@audd.io if you need it enabled.
@@ -1607,7 +1607,8 @@ var AudD = class {
1607
1607
  return this._advanced;
1608
1608
  }
1609
1609
  /**
1610
- * Recognize a short audio clip (≤25s) from a URL, file path, Blob, or bytes.
1610
+ * Recognize a song from an audio clip given as a URL, file path, Blob, or
1611
+ * bytes; only the first 12 seconds are analyzed.
1611
1612
  *
1612
1613
  * Returns `null` when the server returns `status=success` with `result=null`
1613
1614
  * (no match) — distinct from a thrown error.