Skip to content

Commit

Permalink
gvoice
Browse files Browse the repository at this point in the history
  • Loading branch information
eagleychen committed Jan 24, 2024
1 parent e7f67f2 commit 228db92
Show file tree
Hide file tree
Showing 5 changed files with 82 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/deploypod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -199,3 +199,28 @@ jobs:
pod trunk push TIoTLinkKit_SoundTouch.podspec --verbose --allow-warnings
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.IOT_COCOAPODS_TRUNK_TOKEN }}


- name: Deploy gvoice SDK
if: ${{contains(env.curr_tag, 'gvoice')}}
run: |
set -eo pipefail
temptag=$(git describe --tags `git rev-list --tags --max-count=1`)
vtaglist=(${temptag//-/ })
beta=${vtaglist[2]}
version=${vtaglist[1]}
if [ ${#beta} -gt 0 ]
then
version=${vtaglist[1]}-$beta
fi
version=${version#*v}
echo $version
export LIB_VERSION=$version
perl -i -pe "s#.*s.source .*#\ts.source = { :git => 'https://github.com/tencentyun/iot-thirdparty-ios.git', :tag => \"$temptag\" }#g" TIoTLinkKit_GVoiceSE.podspec
pod lib lint TIoTLinkKit_GVoiceSE.podspec --verbose --allow-warnings
pod trunk push TIoTLinkKit_GVoiceSE.podspec --verbose --allow-warnings
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.IOT_COCOAPODS_TRUNK_TOKEN }}
Binary file not shown.
23 changes: 23 additions & 0 deletions Source/GVoiceSE-iOS/GVoiceSEiOS.framework/Headers/GVoiceSE.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
//
// GVoiceSEiOS.h
// GVoiceSEiOS
//
// Created by Eagle Chan on 2024/1/23.
//

#import <Foundation/Foundation.h>

//! Project version number for GVoiceSEiOS.
FOUNDATION_EXPORT double GVoiceSEiOSVersionNumber;

//! Project version string for GVoiceSEiOS.
FOUNDATION_EXPORT const unsigned char GVoiceSEiOSVersionString[];

// In this header, you should import all the public headers of your framework using statements like #import <GVoiceSEiOS/PublicHeader.h>


@interface GVoiceSE : NSObject
//model_path 传入模型文件路径
+ (int)voice_handle_open:(const char*)model_path; //返回-1初始化错误,0成功
+ (void)voice_handle_process:(char *)pcmlocal ref:(char *)pcmref;
@end
Binary file added Source/GVoiceSE-iOS/GVoiceSEiOS.framework/Info.plist
Binary file not shown.
34 changes: 34 additions & 0 deletions TIoTLinkKit_GVoiceSE.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
Pod::Spec.new do |s|
s.name = 'TIoTLinkKit_GVoiceSE'
s.version = ENV['LIB_VERSION'] || '1.0.0'
s.summary = '该仓库为方便个人仓库构建使用,如有其他需求还请从官网下载原SDK'

s.description = <<-DESC
在CI构建中,有些SDK没有提供供方便pod集成使用,在此仓库提供个聚合SDK以便更好的支持CI。
DESC

s.homepage = 'https://github.com/tencentyun/iot-thirdparty-ios'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { '[email protected]' => '[email protected]' }
s.source = { :git => 'https://github.com/tencentyun/iot-thirdparty-ios.git', :tag => s.version.to_s }

s.ios.deployment_target = '9.0'
# s.pod_target_xcconfig = { 'OTHER_LDFLAGS' => '-all_load' }
# s.static_framework = true

# s.source_files = 'Source/SoundTouch-iOS/Classes/**/*'
# s.vendored_libraries = 'Source/SoundTouch-iOS/*.a'
s.vendored_frameworks = 'Source/GVoiceSE-iOS/GVoiceSEiOS.framework'
# s.frameworks = "NetworkExtension", "CoreGraphics", "SystemConfiguration", "Foundation", "UIKit"
# s.libraries = 'c++', 'sqlite3', 'z'

s.user_target_xcconfig = {
'GENERATE_INFOPLIST_FILE' => 'YES',
'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64'
}

s.pod_target_xcconfig = {
'GENERATE_INFOPLIST_FILE' => 'YES',
'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64'
}
end

0 comments on commit 228db92

Please sign in to comment.