forked from watson-developer-cloud/swift-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIBMWatsonTextToSpeechV1.podspec
44 lines (38 loc) · 2.2 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
Pod::Spec.new do |s|
s.name = 'IBMWatsonTextToSpeechV1'
s.version = '2.1.1'
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]',
'Mike Kistler' => '[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 => s.version.to_s }
s.source_files = 'Source/TextToSpeechV1/**/*.swift',
'Source/SupportingFiles/InsecureConnection.swift',
'Source/SupportingFiles/Shared.swift',
'Source/SupportingFiles/Dependencies/Source/**/*'
s.exclude_files = 'Source/TextToSpeechV1/Shared.swift',
'**/config_types.h'
s.swift_version = '4.2'
s.dependency 'IBMWatsonRestKit', '~> 3.0.0'
s.vendored_libraries = 'Source/SupportingFiles/Dependencies/Libraries/*.a'
# 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 Source/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