forked from watson-developer-cloud/swift-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
IBMWatsonSpeechToTextV1.podspec
46 lines (40 loc) · 2.37 KB
/
IBMWatsonSpeechToTextV1.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
Pod::Spec.new do |s|
s.name = 'IBMWatsonSpeechToTextV1'
s.version = '1.1.0'
s.summary = 'Client framework for the IBM Watson Speech to Text service'
s.description = <<-DESC
The IBM® Speech to Text leverages machine intelligence to transcribe the human voice accurately.
The service combines information about grammar and language structure with knowledge of the composition
of the audio signal. It continuously returns and retroactively updates a transcription as more speech is heard.
DESC
s.homepage = 'https://www.ibm.com/watson/services/speech-to-text/'
s.license = { :type => 'Apache License, Version 2.0', :file => 'LICENSE' }
s.authors = { 'Anthony Oliveri' => '[email protected]',
'Mike Kistler' => '[email protected]' }
s.module_name = 'SpeechToText'
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/SpeechToTextV1/**/*.swift',
'Source/SupportingFiles/Shared.swift',
'Source/SupportingFiles/Dependencies/Source/**/*'
s.exclude_files = 'Source/SpeechToTextV1/Shared.swift',
'**/config_types.h',
'**/opus_header.h',
'**/opus_header.c'
s.dependency 'IBMWatsonRestKit', '~> 2.0.0'
s.dependency 'Starscream', '3.0.5'
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 TextToSpeech 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_stt.a
mv libopus.a libopus_stt.a
cd ../Source
mv ogg/* .
mv opus/* .
rm -rf ogg
rm -rf opus
CMD
end