gpt4 book ai didi

c# - 将 PowerPoint 演示文稿中的所有声音静音

转载 作者:太空宇宙 更新时间:2023-11-03 15:28:15 26 4
gpt4 key购买 nike

我正在以幻灯片模式从我的桌面应用程序中打开一个 ppt 文件。我想将所有嵌入或与演示文稿链接的声音静音(如果存在)。如何将演示文稿静音?

我正在使用以下代码打开演示文稿。

Process pptProcess;
string appPath = "C:\\Program Files\\Microsoft Office\\Office14\\powerpnt.exe";
string fileName = "D:\\Documents\\SamplePpt.pptx";
pptProcess = Process.Start(appPath, "/s " + fileName);

最佳答案

取自相关forum :

There's nothing like this in the object model.

PowerPoint basically hands the sounds off to Windows to play, it doesn't play them itself.

You might be able to make a copy of the PPT, visit each slide and shape to determine whether it has a transition/animation sound and if so, whether it's one you want to allow or not; if not, remove it.

关于c# - 将 PowerPoint 演示文稿中的所有声音静音,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34488434/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com