audio.js 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. "use strict";
  2. // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
  3. var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
  4. if (k2 === undefined) k2 = k;
  5. var desc = Object.getOwnPropertyDescriptor(m, k);
  6. if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
  7. desc = { enumerable: true, get: function() { return m[k]; } };
  8. }
  9. Object.defineProperty(o, k2, desc);
  10. }) : (function(o, m, k, k2) {
  11. if (k2 === undefined) k2 = k;
  12. o[k2] = m[k];
  13. }));
  14. var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
  15. Object.defineProperty(o, "default", { enumerable: true, value: v });
  16. }) : function(o, v) {
  17. o["default"] = v;
  18. });
  19. var __importStar = (this && this.__importStar) || function (mod) {
  20. if (mod && mod.__esModule) return mod;
  21. var result = {};
  22. if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
  23. __setModuleDefault(result, mod);
  24. return result;
  25. };
  26. Object.defineProperty(exports, "__esModule", { value: true });
  27. exports.Audio = void 0;
  28. const resource_1 = require("../../resource.js");
  29. const SpeechAPI = __importStar(require("./speech.js"));
  30. const speech_1 = require("./speech.js");
  31. const TranscriptionsAPI = __importStar(require("./transcriptions.js"));
  32. const transcriptions_1 = require("./transcriptions.js");
  33. const TranslationsAPI = __importStar(require("./translations.js"));
  34. const translations_1 = require("./translations.js");
  35. class Audio extends resource_1.APIResource {
  36. constructor() {
  37. super(...arguments);
  38. this.transcriptions = new TranscriptionsAPI.Transcriptions(this._client);
  39. this.translations = new TranslationsAPI.Translations(this._client);
  40. this.speech = new SpeechAPI.Speech(this._client);
  41. }
  42. }
  43. exports.Audio = Audio;
  44. Audio.Transcriptions = transcriptions_1.Transcriptions;
  45. Audio.Translations = translations_1.Translations;
  46. Audio.Speech = speech_1.Speech;
  47. //# sourceMappingURL=audio.js.map