feat: add transcript fetching and display in podcast player component

This commit is contained in:
Anish Sarkar 2025-12-21 20:25:27 +05:30
parent 783ee9c154
commit 4f2c9caac2
2 changed files with 58 additions and 18 deletions

View file

@ -62,6 +62,13 @@ class PodcastsApiService {
);
};
/**
* Get a podcast by its ID (includes full transcript)
*/
getPodcastById = async (podcastId: number) => {
return baseApiService.get(`/api/v1/podcasts/${podcastId}`, podcast);
};
generatePodcast = async (request: GeneratePodcastRequest) => {
// Validate the request
const parsedRequest = generatePodcastRequest.safeParse(request);