Latest 1.1.1
Homepage https://github.com/sogouspeech/asr-ios-sdk
License Apache License, Version 2.0
Platforms ios 8.0
Authors

asr-ios-sdk

搜狗语音识别库/示例

准备工作

  • 搜狗知音平台申请的 appidappkey
  • 运行OSX的苹果开发电脑、iPhone/iPad
  • Xcode

集成方式

  • 下载本工程Releases页面的静态库 (SDK library).
  • 将静态库以及源文件(头文件)集成到开发项目中.

依赖项

  • TARGETS–>Info–>Custom iOS Target Properties 添加麦克风使用权限 (Privacy – Microphone Usage Description)
  • TARGETS–>Build Settings–>Other Linker Flags 添加 -ObjC
  • TARGETS–>Link Binary With Libraries 添加 libz、libc++

运行Demo

  • 克隆/下载本工程源码
  • 将Releases页面的静态库下载后,重新引入到工程中
  • 在Demo的ViewController中添加获取到的 appidappkey,并填写使用的服务域名
  • 运行

使用方法请参考搜狗知音文档

Latest podspec

{
    "name": "SogouSpeechSDK",
    "version": "1.1.1",
    "summary": "zhiyin lib",
    "homepage": "https://github.com/sogouspeech/asr-ios-sdk",
    "license": "Apache License, Version 2.0",
    "authors": {
        "[email protected]": "[email protected]"
    },
    "source": {
        "git": "https://github.com/sogouspeech/asr-ios-sdk.git",
        "tag": "1.1.1"
    },
    "platforms": {
        "ios": "8.0"
    },
    "vendored_libraries": "SogouSpeechSDK/Classes/Client/*.{a}",
    "static_framework": true,
    "pod_target_xcconfig": {
        "GCC_PREPROCESSOR_DEFINITIONS": "$(inherited) GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS=1",
        "CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES": "YES",
        "GRPC_SRC_ROOT": "$(PODS_ROOT)/SogouSpeechSDK/SogouSpeechSDK",
        "HEADER_SEARCH_PATHS": ""$(inherited)" "$(GRPC_SRC_ROOT)/Classes/SogouSpeech"",
        "USER_HEADER_SEARCH_PATHS": ""$(GRPC_SRC_ROOT)" "$(GRPC_SRC_ROOT)/Classes/SogouSpeech""
    },
    "subspecs": [
        {
            "name": "Client",
            "source_files": [
                "SogouSpeechSDK/Classes/Client/SogouSpeechDelegate.h",
                "SogouSpeechSDK/Classes/Client/SogouSpeechErrorCode.h",
                "SogouSpeechSDK/Classes/Client/SogoSpeechSDK.h",
                "SogouSpeechSDK/Classes/Client/SogouSpeechManager.h",
                "SogouSpeechSDK/Classes/Client/SogouSpeechPropertySetting.h"
            ]
        },
        {
            "name": "Messages",
            "source_files": "SogouSpeechSDK/Classes/**/*.pbobjc.{h,m}",
            "header_mappings_dir": "SogouSpeechSDK/Classes/SogouSpeech",
            "requires_arc": false,
            "dependencies": {
                "Protobuf": []
            }
        },
        {
            "name": "Services",
            "source_files": "SogouSpeechSDK/Classes/**/*.pbrpc.{h,m}",
            "header_mappings_dir": "SogouSpeechSDK/Classes/SogouSpeech",
            "private_header_files": "SogouSpeechSDK/Classes/**/*.pbrpc.h",
            "dependencies": {
                "gRPC-ProtoRPC": [],
                "SogouSpeechSDK/Messages": []
            }
        }
    ]
}

Pin It on Pinterest

Share This