podcast_api 3.0.0 → 3.2.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 789c1376da5ce7453407f4894afda038d8af4b19f7b0a3e68cc763517db0199a
4
- data.tar.gz: 9d645745c9b9f5dc595ed1dba86ccbe2befab356bc09c6f857b5289ff2218566
3
+ metadata.gz: 5bc394adc2752818625ad5b3555d669af08e11ba57ee392ed20ca8ec5bca3453
4
+ data.tar.gz: '0149bdbf0f3ca0d96f78486918a1dab559a7abd65d39378afecd39bc9fa27117'
5
5
  SHA512:
6
- metadata.gz: 9f23d589831e74d64a8176292734c66bd21e4c743a5465b0f11780d782a9ddc6d7dab9cc95d6b75a8aea743be1c1fb00740b194177997aced5ad9743aff7666c
7
- data.tar.gz: 20d10b94e456a30c0169ad54c74dfcef9f6d2f2c7137faa6bac1cf874d95625498a4c86a982b15ce99fbda8390f3c373b01f80bc954ec48ddac3a1064958da05
6
+ metadata.gz: 42ced15b998c9ae36ef9d0c5210f4bbb403cd43ee454c1910b45b3d9e7ee43539a9f379d68102999da06a2842bf0bb990faf00150971cf62a538cb1bd7c67dca
7
+ data.tar.gz: 4e8ace425c5dd8ddf2270a9939b2dbb6800a213699a64b94297abd52d565cb0f24fd5c7d82dc7e3015b0510774dbc084a42256df9fcf882510a6fff5e8007518
data/README.md CHANGED
@@ -3,10 +3,9 @@
3
3
  [![Ruby CI](https://github.com/ListenNotes/podcast-api-ruby/actions/workflows/ruby.yml/badge.svg)](https://github.com/ListenNotes/podcast-api-ruby/actions/workflows/ruby.yml) [![Gem](https://img.shields.io/gem/v/podcast_api)](https://rubygems.org/gems/podcast_api)
4
4
 
5
5
 
6
- The Podcast API Ruby library provides convenient access to the [Listen Notes Podcast API](https://www.listennotes.com/podcast-api/) from
7
- applications written in Ruby.
6
+ Search podcasts and episodes, generate speaker-labeled transcripts on demand, and get podcast audience insights with the official Ruby SDK for the [Listen Notes Podcast API](https://www.listennotes.com/api/).
8
7
 
9
- Simple and no-nonsense podcast search & directory API. Search the meta data of all podcasts and episodes by people, places, or topics. It's the same API that powers the [best podcast search engine Listen Notes](https://www.listennotes.com/).
8
+ You can also discover podcasts in ChatGPT, Claude, or another compatible AI assistant without writing code. [Connect the official Podcast MCP](https://www.listennotes.com/api/mcp/).
10
9
 
11
10
  If you have any questions, please contact [hello@listennotes.com](hello@listennotes.com?subject=Questions+about+the+Ruby+SDK+of+Listen+API)
12
11
 
@@ -53,12 +52,32 @@ If you have any questions, please contact [hello@listennotes.com](hello@listenno
53
52
  - [`fetch_podcasts_by_domain`](#fetch_podcasts_by_domain) — `GET /podcasts/domains/{domain_name}`
54
53
  - [`create_playlist`](#create_playlist) — `POST /playlists`
55
54
  - [`update_playlist`](#update_playlist) — `PUT /playlists/{id}`
55
+ - [`delete_playlist`](#delete_playlist) — `DELETE /playlists/{id}`
56
56
  - [`add_playlist_item`](#add_playlist_item) — `POST /playlists/{id}/items`
57
57
  - [`delete_playlist_item`](#delete_playlist_item) — `DELETE /playlists/{id}/items/{item_id}`
58
58
  - [`update_playlist_item_notes`](#update_playlist_item_notes) — `PUT /playlists/{id}/items/{item_id}`
59
+ - [`estimate_episode_transcription`](#estimate_episode_transcription) — `GET /episodes/{id}/transcript/estimate`
60
+ - [`transcribe_episode`](#transcribe_episode) — `POST /episodes/{id}/transcript`
61
+ - [`get_episode_transcript`](#get_episode_transcript) — `GET /episodes/{id}/transcript`
62
+ - [`list_transcripts`](#list_transcripts) — `GET /transcripts`
59
63
 
60
64
  <!-- END GENERATED METHOD INDEX -->
61
65
 
66
+ ## On-demand podcast transcription
67
+
68
+ Transcription methods are available in version 3.2.0. Use the [mock API](https://www.listennotes.help/article/48-how-to-test-the-podcast-api-without-an-api-key) to try the examples with fixed responses and no API key.
69
+
70
+ | Method | What it does |
71
+ | --- | --- |
72
+ | [`estimate_episode_transcription`](#estimate_episode_transcription) | Estimate cost and check your remaining transcription quota. |
73
+ | [`transcribe_episode`](#transcribe_episode) | Queue a transcription for a podcast episode. |
74
+ | [`get_episode_transcript`](#get_episode_transcript) | Poll for job status and get fresh signed download URLs. |
75
+ | [`list_transcripts`](#list_transcripts) | List completed transcripts and paginate with `next_cursor`. |
76
+
77
+ **Can I get speaker-labeled podcast transcripts?** Yes. When multiple voices are detected, TXT, SRT, and VTT include speaker labels. Word-level JSON includes speaker IDs when available and timestamps in milliseconds. Signed links expire after 15 minutes. Poll again for fresh links.
78
+
79
+ **Can I request a live transcription?** Enable transcription and set up billing in your API dashboard, then use a server-side API key. Check the estimate first because live requests can incur transcription fees. [Transcription settings](https://www.listennotes.com/api/dashboard/#transcription) · [Pricing](https://www.listennotes.com/api/pricing/#on-demand-transcription)
80
+
62
81
  ## Installation
63
82
 
64
83
  Install [the official Ruby Gem](https://rubygems.org/gems/podcast_api) of the Listen Notes Podcast API:
@@ -400,7 +419,11 @@ Fetch detailed meta data for an episode by id
400
419
 
401
420
  `GET /episodes/{id}`
402
421
 
403
- Fetch detailed meta data for a specific episode.
422
+ Fetch detailed metadata for a specific episode.
423
+
424
+ Existing episode transcripts are already available on Listen Notes and include transcripts supplied by podcast producers. About 12% of new episodes and over 3% of all episodes have an existing transcript. Retrieve one with `show_transcript=1` on PRO and ENTERPRISE.
425
+
426
+ If an episode has no transcript, use `POST /episodes/{id}/transcript` to request on-demand transcription on any plan.
404
427
 
405
428
  ```ruby
406
429
  require "podcast_api"
@@ -791,6 +814,30 @@ puts response.parsed_response
791
814
 
792
815
  [Full API documentation](https://www.listennotes.com/api/docs/#put-api-v2-playlists-id)
793
816
 
817
+ ### delete_playlist
818
+
819
+ Delete a playlist.
820
+
821
+ `DELETE /playlists/{id}`
822
+
823
+ Permanently delete a playlist, including all episode and podcast references saved in this specific playlist and their notes. The actual episodes and podcasts remain in the Listen Notes podcast database.
824
+
825
+ **Warning: Deletion cannot be undone. Once deleted, the playlist is gone, regardless of how many episodes or podcasts it contains. You, the developer, are responsible for adding a confirmation step in your app's UI before calling this endpoint to prevent accidental deletion.**
826
+
827
+ Only playlists owned by your admin API account can be modified; contributor membership does not grant write access.
828
+
829
+ ```ruby
830
+ require "podcast_api"
831
+
832
+ client = PodcastApi::Client.new(api_key: ENV["LISTEN_API_KEY"])
833
+ response = client.delete_playlist(**{
834
+ 'id' => 'm1pe7z60bsw'
835
+ })
836
+ puts response.parsed_response
837
+ ```
838
+
839
+ [Full API documentation](https://www.listennotes.com/api/docs/#delete-api-v2-playlists-id)
840
+
794
841
  ### add_playlist_item
795
842
 
796
843
  Add an episode or podcast to a playlist.
@@ -860,4 +907,124 @@ puts response.parsed_response
860
907
 
861
908
  [Full API documentation](https://www.listennotes.com/api/docs/#put-api-v2-playlists-id-items-item_id)
862
909
 
910
+ ### estimate_episode_transcription
911
+
912
+ Estimate episode transcription cost
913
+
914
+ `GET /episodes/{id}/transcript/estimate`
915
+
916
+ Get an informational estimate using episode duration metadata, your remaining quota, and your account's per-minute overage rate. This does not start transcription or reserve quota.
917
+
918
+ `transcription_quota_this_cycle` shows the included and remaining minutes. `billing_this_transcription.amount_cents` is the estimated fee for minutes beyond the remaining quota. It is 0 when the estimate fits within the quota.
919
+
920
+ The final fee uses the audio duration measured by the model, the quota available when transcription completes, and the per-minute rate saved when the request is accepted.
921
+
922
+ If duration metadata is unavailable, `estimate`, `billing_this_transcription.billable_minutes`, and `billing_this_transcription.amount_cents` are null. You can request an estimate before enabling Transcription or adding a payment method. Normal API request accounting applies.
923
+
924
+ ```ruby
925
+ require "podcast_api"
926
+
927
+ client = PodcastApi::Client.new(api_key: ENV["LISTEN_API_KEY"])
928
+ response = client.estimate_episode_transcription(**{
929
+ 'id' => 'dc09fd798802477b8dba0ca1e10134fa'
930
+ })
931
+ puts response.parsed_response
932
+ ```
933
+
934
+ [Full API documentation](https://www.listennotes.com/api/docs/#get-api-v2-episodes-id-transcript-estimate)
935
+
936
+ ### transcribe_episode
937
+
938
+ Request episode transcription
939
+
940
+ `POST /episodes/{id}/transcript`
941
+
942
+ Generate speaker-labeled transcripts for a podcast episode on demand. The request runs asynchronously. Ensure Transcription is enabled and a payment method is added in the [API dashboard](https://www.listennotes.com/api/dashboard/#transcription). Eligible paid accounts may use their existing invoicing arrangement.
943
+
944
+ **On-demand transcription can incur fees. This example uses the mock API. Configure a server-side API key only when you intend to request live transcription.**
945
+
946
+ See the [API pricing page](https://www.listennotes.com/api/pricing/#on-demand-transcription) for included minutes and rates. Use the estimate endpoint to check your account's quota and estimated charge.
947
+
948
+ Returns HTTP 202 for a queued or processing request, or HTTP 200 if a completed transcript already exists for this API account. Repeating a pending or completed request reuses it without another transcription charge. If transcription fails, you may request it again. Up to three pending requests are allowed per API account by default.
949
+
950
+ Both responses include `transcription_quota_this_cycle` and `billing_this_transcription`. HTTP 202 includes `estimate`, which is null when duration metadata is unavailable. HTTP 200 includes the measured duration and completion time. Use the polling endpoint for signed download URLs.
951
+
952
+ Poll GET /episodes/{id}/transcript, or [configure a webhook in the dashboard](https://www.listennotes.com/api/dashboard/#webhooks) to receive `episode_transcription.completed` or `episode_transcription.failed`. Webhooks are optional; there is no webhook URL parameter on this operation.
953
+
954
+ The processing deadline is 15 minutes when estimated audio length is under 60 minutes or unknown, otherwise 25% of estimated audio length. Failed and timed-out transcriptions are not charged a transcription fee.
955
+
956
+ The per-minute rate is saved when the request is accepted. When a transcription succeeds, we round the measured audio duration up to a whole minute. Only minutes beyond the included quota incur a transcription fee. Disabling Transcription blocks new requests. Accepted requests continue processing.
957
+
958
+ No request body is required. Normal API request accounting applies even when the transcription fee is zero.
959
+
960
+ ```ruby
961
+ require "podcast_api"
962
+
963
+ client = PodcastApi::Client.new(api_key: nil)
964
+ response = client.transcribe_episode(**{
965
+ 'id' => '1871d978bdc648588441bc5649857ddb'
966
+ })
967
+ puts response.parsed_response
968
+ ```
969
+
970
+ [Full API documentation](https://www.listennotes.com/api/docs/#post-api-v2-episodes-id-transcript)
971
+
972
+ ### get_episode_transcript
973
+
974
+ Get episode transcription status and downloads
975
+
976
+ `GET /episodes/{id}/transcript`
977
+
978
+ Poll the transcription requested by your API account for this episode. Returns HTTP 200 for queued, processing, completed, and failed states. Only your API account's requests are accessible.
979
+
980
+ Queued and processing responses include the same quota, billing, and estimate fields as HTTP 202 from POST, plus a `Retry-After` header of 30 seconds. Completed responses include actual duration, `billing_this_transcription`, `transcription_quota_this_cycle`, and all available TXT, SRT, VTT, and word-level JSON download URLs. Failed responses include `error.code`, such as `transcription_timeout`, and null billing minutes and amount.
981
+
982
+ Signed URLs in `download_urls` are valid for 15 minutes and share the UTC expiration time in `download_url_expired_date`. Anyone holding a valid URL can download the file without an API key. Poll again for fresh URLs.
983
+
984
+ Transcription uses speaker diarization to distinguish voices. When multiple speakers are detected, TXT, SRT, and VTT use speaker labels. A TXT download places the label before the spoken text.
985
+
986
+ ```
987
+ Speaker A: Thanks for joining us.
988
+
989
+ Speaker B: Happy to be here.
990
+ ```
991
+
992
+ Word-level JSON includes start and end timestamps in milliseconds and a `speaker` ID for each word, or `null` when a label is unavailable.
993
+
994
+ If multiple attempts exist, an existing completed transcript remains available until a replacement succeeds. Otherwise the latest request is returned. This operation does not initiate transcription.
995
+
996
+ ```ruby
997
+ require "podcast_api"
998
+
999
+ client = PodcastApi::Client.new(api_key: ENV["LISTEN_API_KEY"])
1000
+ response = client.get_episode_transcript(**{
1001
+ 'id' => '1871d978bdc648588441bc5649857ddb'
1002
+ })
1003
+ puts response.parsed_response
1004
+ ```
1005
+
1006
+ [Full API documentation](https://www.listennotes.com/api/docs/#get-api-v2-episodes-id-transcript)
1007
+
1008
+ ### list_transcripts
1009
+
1010
+ List completed episode transcripts
1011
+
1012
+ `GET /transcripts`
1013
+
1014
+ List your API account's completed transcripts, newest completion first. Queued, processing, failed, and superseded attempts are excluded.
1015
+
1016
+ Follow `next_cursor` until it is null. Cursors are opaque and belong to this API account. Each item contains a `billing_this_transcription` summary. Fetch its `transcript_url` from the API server for quota details and fresh signed download URLs.
1017
+
1018
+ ```ruby
1019
+ require "podcast_api"
1020
+
1021
+ client = PodcastApi::Client.new(api_key: ENV["LISTEN_API_KEY"])
1022
+ response = client.list_transcripts(**{
1023
+ 'limit' => 20
1024
+ })
1025
+ puts response.parsed_response
1026
+ ```
1027
+
1028
+ [Full API documentation](https://www.listennotes.com/api/docs/#get-api-v2-transcripts)
1029
+
863
1030
  <!-- END GENERATED API REFERENCE -->
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schema_version": 1,
3
- "version": "3.0.0",
3
+ "version": "3.2.0",
4
4
  "operations": [
5
5
  {
6
6
  "operationId": "search",
@@ -394,7 +394,7 @@
394
394
  "show_transcript": 1
395
395
  },
396
396
  "summary": "Fetch detailed meta data for an episode by id",
397
- "description": "Fetch detailed meta data for a specific episode."
397
+ "description": "Fetch detailed metadata for a specific episode.\n\nExisting episode transcripts are already available on Listen Notes and include transcripts supplied by podcast producers. About 12% of new episodes and over 3% of all episodes have an existing transcript. Retrieve one with `show_transcript=1` on PRO and ENTERPRISE.\n\nIf an episode has no transcript, use `POST /episodes/{id}/transcript` to request on-demand transcription on any plan."
398
398
  },
399
399
  {
400
400
  "operationId": "getEpisodesInBatch",
@@ -815,6 +815,25 @@
815
815
  "summary": "Update playlist metadata.",
816
816
  "description": "Update any subset of name, description, visibility, and type. Omitted fields remain unchanged; at least one field is required. Switching to private rotates the playlist RSS secret. Type selects the saved default view (episode_list or podcast_list) and the returned listennotes_url; changing it preserves all existing episodes and podcasts.\n\nOnly playlists owned by your admin API account can be modified; contributor membership does not grant write access."
817
817
  },
818
+ {
819
+ "operationId": "deletePlaylist",
820
+ "func": "delete_playlist",
821
+ "available_from": "3.1.0",
822
+ "method": "DELETE",
823
+ "path": "/playlists/{id}",
824
+ "parameters": [
825
+ {
826
+ "name": "id",
827
+ "in": "path",
828
+ "required": true
829
+ }
830
+ ],
831
+ "example_params": {
832
+ "id": "m1pe7z60bsw"
833
+ },
834
+ "summary": "Delete a playlist.",
835
+ "description": "Permanently delete a playlist, including all episode and podcast references saved in this specific playlist and their notes. The actual episodes and podcasts remain in the Listen Notes podcast database.\n\n**Warning: Deletion cannot be undone. Once deleted, the playlist is gone, regardless of how many episodes or podcasts it contains. You, the developer, are responsible for adding a confirmation step in your app's UI before calling this endpoint to prevent accidental deletion.**\n\nOnly playlists owned by your admin API account can be modified; contributor membership does not grant write access."
836
+ },
818
837
  {
819
838
  "operationId": "addPlaylistItem",
820
839
  "func": "add_playlist_item",
@@ -906,6 +925,87 @@
906
925
  },
907
926
  "summary": "Update notes for a playlist item.",
908
927
  "description": "Replace item notes, or send an empty string to clear them. The item ID and added_at_ms remain unchanged.\n\nOnly playlists owned by your admin API account can be modified; contributor membership does not grant write access."
928
+ },
929
+ {
930
+ "operationId": "estimateEpisodeTranscription",
931
+ "func": "estimate_episode_transcription",
932
+ "available_from": "3.2.0",
933
+ "method": "GET",
934
+ "path": "/episodes/{id}/transcript/estimate",
935
+ "parameters": [
936
+ {
937
+ "name": "id",
938
+ "in": "path",
939
+ "required": true
940
+ }
941
+ ],
942
+ "example_params": {
943
+ "id": "dc09fd798802477b8dba0ca1e10134fa"
944
+ },
945
+ "summary": "Estimate episode transcription cost",
946
+ "description": "Get an informational estimate using episode duration metadata, your remaining quota, and your account's per-minute overage rate. This does not start transcription or reserve quota.\n\n`transcription_quota_this_cycle` shows the included and remaining minutes. `billing_this_transcription.amount_cents` is the estimated fee for minutes beyond the remaining quota. It is 0 when the estimate fits within the quota.\n\nThe final fee uses the audio duration measured by the model, the quota available when transcription completes, and the per-minute rate saved when the request is accepted.\n\nIf duration metadata is unavailable, `estimate`, `billing_this_transcription.billable_minutes`, and `billing_this_transcription.amount_cents` are null. You can request an estimate before enabling Transcription or adding a payment method. Normal API request accounting applies."
947
+ },
948
+ {
949
+ "operationId": "transcribeEpisode",
950
+ "func": "transcribe_episode",
951
+ "available_from": "3.2.0",
952
+ "method": "POST",
953
+ "path": "/episodes/{id}/transcript",
954
+ "parameters": [
955
+ {
956
+ "name": "id",
957
+ "in": "path",
958
+ "required": true
959
+ }
960
+ ],
961
+ "example_params": {
962
+ "id": "1871d978bdc648588441bc5649857ddb"
963
+ },
964
+ "summary": "Request episode transcription",
965
+ "description": "Generate speaker-labeled transcripts for a podcast episode on demand. The request runs asynchronously. Ensure Transcription is enabled and a payment method is added in the [API dashboard](https://www.listennotes.com/api/dashboard/#transcription). Eligible paid accounts may use their existing invoicing arrangement.\n\n**On-demand transcription can incur fees. To prevent accidental charges, Run returns a mock response here. Copy the code to request transcription from your own environment.**\n\nSee the [API pricing page](https://www.listennotes.com/api/pricing/#on-demand-transcription) for included minutes and rates. Use the estimate endpoint to check your account's quota and estimated charge.\n\nReturns HTTP 202 for a queued or processing request, or HTTP 200 if a completed transcript already exists for this API account. Repeating a pending or completed request reuses it without another transcription charge. If transcription fails, you may request it again. Up to three pending requests are allowed per API account by default.\n\nBoth responses include `transcription_quota_this_cycle` and `billing_this_transcription`. HTTP 202 includes `estimate`, which is null when duration metadata is unavailable. HTTP 200 includes the measured duration and completion time. Use the polling endpoint for signed download URLs.\n\nPoll GET /episodes/{id}/transcript, or [configure a webhook in the dashboard](https://www.listennotes.com/api/dashboard/#webhooks) to receive `episode_transcription.completed` or `episode_transcription.failed`. Webhooks are optional; there is no webhook URL parameter on this operation.\n\nThe processing deadline is 15 minutes when estimated audio length is under 60 minutes or unknown, otherwise 25% of estimated audio length. Failed and timed-out transcriptions are not charged a transcription fee.\n\nThe per-minute rate is saved when the request is accepted. When a transcription succeeds, we round the measured audio duration up to a whole minute. Only minutes beyond the included quota incur a transcription fee. Disabling Transcription blocks new requests. Accepted requests continue processing.\n\nNo request body is required. Normal API request accounting applies even when the transcription fee is zero."
966
+ },
967
+ {
968
+ "operationId": "getEpisodeTranscript",
969
+ "func": "get_episode_transcript",
970
+ "available_from": "3.2.0",
971
+ "method": "GET",
972
+ "path": "/episodes/{id}/transcript",
973
+ "parameters": [
974
+ {
975
+ "name": "id",
976
+ "in": "path",
977
+ "required": true
978
+ }
979
+ ],
980
+ "example_params": {
981
+ "id": "1871d978bdc648588441bc5649857ddb"
982
+ },
983
+ "summary": "Get episode transcription status and downloads",
984
+ "description": "Poll the transcription requested by your API account for this episode. Returns HTTP 200 for queued, processing, completed, and failed states. Only your API account's requests are accessible.\n\nQueued and processing responses include the same quota, billing, and estimate fields as HTTP 202 from POST, plus a `Retry-After` header of 30 seconds. Completed responses include actual duration, `billing_this_transcription`, `transcription_quota_this_cycle`, and all available TXT, SRT, VTT, and word-level JSON download URLs. Failed responses include `error.code`, such as `transcription_timeout`, and null billing minutes and amount.\n\nSigned URLs in `download_urls` are valid for 15 minutes and share the UTC expiration time in `download_url_expired_date`. Anyone holding a valid URL can download the file without an API key. Poll again for fresh URLs.\n\nTranscription uses speaker diarization to distinguish voices. When multiple speakers are detected, TXT, SRT, and VTT use speaker labels. A TXT download places the label before the spoken text.\n\n```\nSpeaker A: Thanks for joining us.\n\nSpeaker B: Happy to be here.\n```\n\nWord-level JSON includes start and end timestamps in milliseconds and a `speaker` ID for each word, or `null` when a label is unavailable.\n\nIf multiple attempts exist, an existing completed transcript remains available until a replacement succeeds. Otherwise the latest request is returned. This operation does not initiate transcription."
985
+ },
986
+ {
987
+ "operationId": "listTranscripts",
988
+ "func": "list_transcripts",
989
+ "available_from": "3.2.0",
990
+ "method": "GET",
991
+ "path": "/transcripts",
992
+ "parameters": [
993
+ {
994
+ "name": "limit",
995
+ "in": "query",
996
+ "required": false
997
+ },
998
+ {
999
+ "name": "cursor",
1000
+ "in": "query",
1001
+ "required": false
1002
+ }
1003
+ ],
1004
+ "example_params": {
1005
+ "limit": 20
1006
+ },
1007
+ "summary": "List completed episode transcripts",
1008
+ "description": "List your API account's completed transcripts, newest completion first. Queued, processing, failed, and superseded attempts are excluded.\n\nFollow `next_cursor` until it is null. Cursors are opaque and belong to this API account. Each item contains a `billing_this_transcription` summary. Fetch its `transcript_url` from the API server for quota details and fresh signed download URLs."
909
1009
  }
910
1010
  ]
911
1011
  }
data/lib/api_methods.rb CHANGED
@@ -138,6 +138,11 @@ module PodcastApi
138
138
  [], kwargs)
139
139
  end
140
140
 
141
+ def delete_playlist(**kwargs)
142
+ request_api('DELETE', '/playlists/{id}',
143
+ [], kwargs)
144
+ end
145
+
141
146
  def add_playlist_item(**kwargs)
142
147
  request_api('POST', '/playlists/{id}/items',
143
148
  [], kwargs)
@@ -153,5 +158,25 @@ module PodcastApi
153
158
  [], kwargs)
154
159
  end
155
160
 
161
+ def estimate_episode_transcription(**kwargs)
162
+ request_api('GET', '/episodes/{id}/transcript/estimate',
163
+ [], kwargs)
164
+ end
165
+
166
+ def transcribe_episode(**kwargs)
167
+ request_api('POST', '/episodes/{id}/transcript',
168
+ [], kwargs)
169
+ end
170
+
171
+ def get_episode_transcript(**kwargs)
172
+ request_api('GET', '/episodes/{id}/transcript',
173
+ [], kwargs)
174
+ end
175
+
176
+ def list_transcripts(**kwargs)
177
+ request_api('GET', '/transcripts',
178
+ ['limit', 'cursor'], kwargs)
179
+ end
180
+
156
181
  end
157
182
  end
data/lib/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PodcastApi
4
- VERSION = '3.0.0'
4
+ VERSION = '3.2.0'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: podcast_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Listen Notes, Inc.
@@ -68,7 +68,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
68
68
  - !ruby/object:Gem::Version
69
69
  version: '0'
70
70
  requirements: []
71
- rubygems_version: 4.0.20
71
+ rubygems_version: 4.0.3
72
72
  specification_version: 4
73
73
  summary: Ruby bindings for the Listen Notes Podcast API
74
74
  test_files: []