Audio summaries of study materials for on-the-go learning
import StudyfetchSDK from '@studyfetch/sdk'; const client = new StudyfetchSDK({ apiKey: 'your-api-key', baseURL: 'https://studyfetchapi.com', }); const audioComponent = await client.v1.components.create({ name: 'Biology Chapter Audio Summary', type: 'audio_recap', config: { materials: ['mat-123', 'mat-456'], folders: ['folder-789'], recapType: 'SUMMARY', duration: 10, numParts: 3, isMultiVoice: true, voice1: 'Puck', voice2: 'Aoede', model: 'gpt-4.1-2025-04-14', topic: 'Cell Biology', theme: 'Educational podcast style' } }); console.log('Audio recap component created:', audioComponent._id);
"audio_recap"
Show Configuration Properties
SUMMARY
LECTURE
PODCAST
AUDIO_BOOK
Puck
Riley
Morgan
Fenrir
Aoede
isMultiVoice
{ "_id": "comp_202mno", "name": "Biology Chapter Audio Summary", "type": "audio_recap", "status": "processing", "config": { "materials": ["mat-123", "mat-456"], "folders": ["folder-789"], "recapType": "SUMMARY", "duration": 10, "numParts": 3, "isMultiVoice": true, "voice1": "Puck", "voice2": "Aoede", "model": "gpt-4.1-2025-04-14", "topic": "Cell Biology", "theme": "Educational podcast style" }, "createdAt": "2024-01-15T10:00:00Z", "updatedAt": "2024-01-15T10:00:00Z", "organizationId": "org_456def", "audioFile": { "url": null, "duration": null, "size": null } }
const embedResponse = await client.v1.components.generateEmbed(audioComponent._id, { // User tracking userId: 'user-456', groupIds: ['class-101', 'class-102'], sessionId: 'session-789', // Audio-specific features features: { enableTranscript: true, enableOutline: true, enableHistory: true }, // Dimensions width: '100%', height: '400px', // Token expiry expiryHours: 24 });
<iframe src="https://embed.studyfetch.com/component/comp_202mno?token=..." width="100%" height="400px" frameborder="0" style="border: 1px solid #e5e5e5; border-radius: 8px;"> </iframe>
Was this page helpful?