Skip to content

Commit 228db92

Browse files
author
eagleychen
committed
gvoice
1 parent e7f67f2 commit 228db92

File tree

5 files changed

+82
-0
lines changed

5 files changed

+82
-0
lines changed

.github/workflows/deploypod.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,3 +199,28 @@ jobs:
199199
pod trunk push TIoTLinkKit_SoundTouch.podspec --verbose --allow-warnings
200200
env:
201201
COCOAPODS_TRUNK_TOKEN: ${{ secrets.IOT_COCOAPODS_TRUNK_TOKEN }}
202+
203+
204+
- name: Deploy gvoice SDK
205+
if: ${{contains(env.curr_tag, 'gvoice')}}
206+
run: |
207+
set -eo pipefail
208+
209+
temptag=$(git describe --tags `git rev-list --tags --max-count=1`)
210+
vtaglist=(${temptag//-/ })
211+
beta=${vtaglist[2]}
212+
version=${vtaglist[1]}
213+
if [ ${#beta} -gt 0 ]
214+
then
215+
version=${vtaglist[1]}-$beta
216+
fi
217+
version=${version#*v}
218+
echo $version
219+
220+
export LIB_VERSION=$version
221+
perl -i -pe "s#.*s.source .*#\ts.source = { :git => 'https://github.com/tencentyun/iot-thirdparty-ios.git', :tag => \"$temptag\" }#g" TIoTLinkKit_GVoiceSE.podspec
222+
223+
pod lib lint TIoTLinkKit_GVoiceSE.podspec --verbose --allow-warnings
224+
pod trunk push TIoTLinkKit_GVoiceSE.podspec --verbose --allow-warnings
225+
env:
226+
COCOAPODS_TRUNK_TOKEN: ${{ secrets.IOT_COCOAPODS_TRUNK_TOKEN }}
2.48 MB
Binary file not shown.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
//
2+
// GVoiceSEiOS.h
3+
// GVoiceSEiOS
4+
//
5+
// Created by Eagle Chan on 2024/1/23.
6+
//
7+
8+
#import <Foundation/Foundation.h>
9+
10+
//! Project version number for GVoiceSEiOS.
11+
FOUNDATION_EXPORT double GVoiceSEiOSVersionNumber;
12+
13+
//! Project version string for GVoiceSEiOS.
14+
FOUNDATION_EXPORT const unsigned char GVoiceSEiOSVersionString[];
15+
16+
// In this header, you should import all the public headers of your framework using statements like #import <GVoiceSEiOS/PublicHeader.h>
17+
18+
19+
@interface GVoiceSE : NSObject
20+
//model_path 传入模型文件路径
21+
+ (int)voice_handle_open:(const char*)model_path; //返回-1初始化错误,0成功
22+
+ (void)voice_handle_process:(char *)pcmlocal ref:(char *)pcmref;
23+
@end
750 Bytes
Binary file not shown.

TIoTLinkKit_GVoiceSE.podspec

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
Pod::Spec.new do |s|
2+
s.name = 'TIoTLinkKit_GVoiceSE'
3+
s.version = ENV['LIB_VERSION'] || '1.0.0'
4+
s.summary = '该仓库为方便个人仓库构建使用,如有其他需求还请从官网下载原SDK'
5+
6+
s.description = <<-DESC
7+
在CI构建中,有些SDK没有提供供方便pod集成使用,在此仓库提供个聚合SDK以便更好的支持CI。
8+
DESC
9+
10+
s.homepage = 'https://github.com/tencentyun/iot-thirdparty-ios'
11+
s.license = { :type => 'MIT', :file => 'LICENSE' }
12+
s.author = { '[email protected]' => '[email protected]' }
13+
s.source = { :git => 'https://github.com/tencentyun/iot-thirdparty-ios.git', :tag => s.version.to_s }
14+
15+
s.ios.deployment_target = '9.0'
16+
# s.pod_target_xcconfig = { 'OTHER_LDFLAGS' => '-all_load' }
17+
# s.static_framework = true
18+
19+
# s.source_files = 'Source/SoundTouch-iOS/Classes/**/*'
20+
# s.vendored_libraries = 'Source/SoundTouch-iOS/*.a'
21+
s.vendored_frameworks = 'Source/GVoiceSE-iOS/GVoiceSEiOS.framework'
22+
# s.frameworks = "NetworkExtension", "CoreGraphics", "SystemConfiguration", "Foundation", "UIKit"
23+
# s.libraries = 'c++', 'sqlite3', 'z'
24+
25+
s.user_target_xcconfig = {
26+
'GENERATE_INFOPLIST_FILE' => 'YES',
27+
'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64'
28+
}
29+
30+
s.pod_target_xcconfig = {
31+
'GENERATE_INFOPLIST_FILE' => 'YES',
32+
'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64'
33+
}
34+
end

0 commit comments

Comments
 (0)