V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
dreamahui
V2EX  ›  程序员

ios 语音播报, UNNotificationServiceExtension 扩展类里面添加本地语音合成报错,错误如下:

  •  
  •   dreamahui · 2021-01-18 18:48:43 +08:00 · 1071 次点击
    这是一个创建于 1165 天前的主题,其中的信息可能已经有所发展或是发生改变。
    Error Domain=AVFoundationErrorDomain Code=-11800 "The operation could not be completed" UserInfo={NSLocalizedFailureReason=An unknown error occurred (-16980), NSLocalizedDescription=The operation could not be completed, NSUnderlyingError=0x100b50a50 {Error Domain=NSOSStatusErrorDomain Code=-16980 "(null)"}}


    在主程序中 mp3 合成正常,在扩展类里面报错
    3 条回复    2021-01-19 16:28:34 +08:00
    m1ng
        1
    m1ng  
       2021-01-18 21:34:39 +08:00
    https://developer.apple.com/forums/thread/110458

    好像是在 12.1 之后被禁了。
    dreamahui
        2
    dreamahui  
    OP
       2021-01-19 09:30:57 +08:00
    @m1ng 我试了支付宝的收款播报语音合成(不知道是不是音频拼接)还是可以的,不知道他们的解决方案是什么
    m1ng
        3
    m1ng  
       2021-01-19 16:28:34 +08:00
    @dreamahui 看了一下支付宝的 ipa 包,它把常用的一些金额(例如一元、十元、一分、五毛之类的)和默认的“支付宝到账一笔”对应的语音都放在本地了,加起来有一百多个语音文件。你可以试一下 1.97 元这种金额,如果如果它准确说出了金额的话那就是用语音合成了,如果是默认的“支付宝到账一笔”那就没用合成。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3244 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 14:06 · PVG 22:06 · LAX 07:06 · JFK 10:06
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.