Aspose.Slides makes it easy to get speaker notes from a presentation. This library can be used in C#, Java, C++ and Python. The following C# code example shows you how to get the speaker notes from each slide:
using var presentation = new Presentation("example.pptx");
foreach (var slide in presentation.Slides)
{
// Get notes from the slide.
var slideNotes = slide.NotesSlideManager.NotesSlide.NotesTextFrame.Text;
Console.WriteLine(slideNotes);
}
This is a paid product, but you can get a temporary license to evaluate all its features. Alternatively, you can use Aspose.Slides Cloud SDK that provides REST-based APIs in many languages. The C# code example below shows you how to do the same using Aspose.Slides Cloud:
var slidesApi = new SlidesApi("my_client_key", "my_client_secret");
// A presentation saved in storage.
var fileName = "example.pptx";
var slideCount = slidesApi.GetSlides(fileName).SlideList.Count;
for (var slideNumber = 1; slideNumber <= slideCount; slideNumber++)
{
// Get notes from the slide.
var notesSlide = slidesApi.GetNotesSlide(fileName, slideNumber);
Console.WriteLine(notesSlide.Text);
}
This is also a paid product, but you can make 150 free API calls per month for your purposes. I work as a Support Developer at Aspose.