Skip to content

feature: add <a:snd> (sound) support to click-action #734

@NathanTech7713

Description

@NathanTech7713

Hi, me again.

>>> prs = Presentation("narrated_powerpoint_presentation.pptx")
>>> shape = prs.slides[1].shapes[2]
>>> shape.name
'Audio 5'
>>> shape.click_action.action
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\python332\lib\site-packages\pptx\action.py", line 53, in action
    return {
KeyError: 'media'

And if you examine the shape it acts like it is an image file rather than audio.
Preferred solutions/workarounds:

  1. To be able to recognise that it is audio.
    1. To be able to retrieve the name of the media file which I can then extract from the pptx as a zip.
      Uploading narrated_powerpoint_presentation.pptx…

Metadata

Metadata

Assignees

No one assigned

    Labels

    audioclick-actionBehaviors related to hyperlinks and jumps

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions