-
Notifications
You must be signed in to change notification settings - Fork 222
/
IBMWatsonTextToSpeechV1.podspec
55 lines (48 loc) · 2.65 KB
/
IBMWatsonTextToSpeechV1.podspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
Pod::Spec.new do |s|
s.name = 'IBMWatsonTextToSpeechV1'
s.version = '5.0.0'
s.summary = 'Client framework for the IBM Watson Text to Speech service'
s.description = <<-DESC
IBM® Text to Speech uses IBM's speech-synthesis capabilities to convert written text to natural-sounding speech.
The service streams the results back to the client with minimal delay.
DESC
s.homepage = 'https://www.ibm.com/watson/services/text-to-speech/'
s.license = { :type => 'Apache License, Version 2.0', :file => 'LICENSE' }
s.authors = { 'Jeff Arn' => '[email protected]',
'Angelo Paparazzi' => '[email protected]' }
s.module_name = 'TextToSpeech'
s.ios.deployment_target = '10.0'
s.source = { :git => 'https://github.com/watson-developer-cloud/swift-sdk.git', :tag => "v#{s.version}" }
s.source_files = 'Sources/TextToSpeechV1/**/*.swift',
'Sources/SupportingFiles/InsecureConnection.swift',
'Sources/SupportingFiles/Shared.swift',
'Sources/SupportingFiles/Dependencies/Source/**/*'
s.exclude_files = 'Sources/TextToSpeechV1/Shared.swift',
'Sources/TextToSpeechV1/InsecureConnection.swift',
'**/config_types.h'
s.swift_version = ['4.2', '5.0', '5.1']
s.dependency 'IBMSwiftSDKCore', '~> 1.2.1'
s.vendored_libraries = 'Sources/SupportingFiles/Dependencies/Libraries/*.a'
# This is necessary for the time being as we do not support the
# XCFramework binary solution that can be bundled for all
# architectures (thus supporting Apple Silicon)
s.pod_target_xcconfig = {
'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64'
}
s.user_target_xcconfig = {
'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64'
}
# The renaming of libogg.a and libopus.a is done to avoid duplicate library name errors
# in case SpeechToText is being installed in the same app (which also includes libogg and libopus)
# The ogg/ and opus/ files are flattened to the same directory so that all #include statements work
s.prepare_command = <<-CMD
cd Sources/SupportingFiles/Dependencies/Libraries
mv libogg.a libogg_tts.a
mv libopus.a libopus_tts.a
cd ../Source
mv ogg/* .
mv opus/* .
rm -rf ogg
rm -rf opus
CMD
end