Skip to content

Commit 246aee0

Browse files
author
Omair Baskanderi
committed
Add Copyright License info
1 parent 6e06f16 commit 246aee0

File tree

3 files changed

+63
-1
lines changed

3 files changed

+63
-1
lines changed

OpusRecorder/Classes/Encoder.swift

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,25 @@
44
//
55
// Created by Omair Baskanderi on 2017-03-06.
66
//
7+
// This class was extracted from:
8+
// watson-developer-cloud/swift-sdk SpeechToTextEncoder.swift
9+
//
10+
// source:
11+
// https://github.com/watson-developer-cloud/swift-sdk/blob/master/Source/SpeechToTextV1/SpeechToTextEncoder.swift
12+
//
13+
// Copyright IBM Corporation 2016
14+
//
15+
// Licensed under the Apache License, Version 2.0 (the "License");
16+
// you may not use this file except in compliance with the License.
17+
// You may obtain a copy of the License at
18+
//
19+
// http://www.apache.org/licenses/LICENSE-2.0
20+
//
21+
// Unless required by applicable law or agreed to in writing, software
22+
// distributed under the License is distributed on an "AS IS" BASIS,
23+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
24+
// See the License for the specific language governing permissions and
25+
// limitations under the License.
726
//
827

928
import Foundation

OpusRecorder/Classes/Recorder.swift

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,25 @@
44
//
55
// Created by Omair Baskanderi on 2017-03-06.
66
//
7+
// This class was extracted from:
8+
// watson-developer-cloud/swift-sdk SpeechToTextRecorder.swift
9+
//
10+
// source:
11+
// https://github.com/watson-developer-cloud/swift-sdk/blob/master/Source/SpeechToTextV1/SpeechToTextRecorder.swift
12+
//
13+
// Copyright IBM Corporation 2016
14+
//
15+
// Licensed under the Apache License, Version 2.0 (the "License");
16+
// you may not use this file except in compliance with the License.
17+
// You may obtain a copy of the License at
18+
//
19+
// http://www.apache.org/licenses/LICENSE-2.0
20+
//
21+
// Unless required by applicable law or agreed to in writing, software
22+
// distributed under the License is distributed on an "AS IS" BASIS,
23+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
24+
// See the License for the specific language governing permissions and
25+
// limitations under the License.
726
//
827

928
import Foundation
@@ -27,7 +46,7 @@ internal class Recorder {
2746
private let callback: AudioQueueInputCallback = {
2847
userData, queue, bufferRef, startTimeRef, numPackets, packetDescriptions in
2948

30-
// parse `userData` as `OpusRecorder`
49+
// parse `userData` as `Recorder`
3150
guard let userData = userData else { return }
3251
let audioRecorder = Unmanaged<Recorder>.fromOpaque(userData).takeUnretainedValue()
3352

OpusRecorder/Classes/Session.swift

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,31 @@
44
//
55
// Created by Omair Baskanderi on 2017-03-06.
66
//
7+
// This class was extracted from:
8+
// watson-developer-cloud/swift-sdk SpeechToTextSession.swift
79
//
10+
// Minor modifications:
11+
// - removed web components
12+
// - removed speech components
13+
//
14+
// original source:
15+
// https://github.com/watson-developer-cloud/swift-sdk/blob/master/Source/SpeechToTextV1/SpeechToTextSession.swift
16+
//
17+
// Copyright IBM Corporation 2016
18+
//
19+
// Licensed under the Apache License, Version 2.0 (the "License");
20+
// you may not use this file except in compliance with the License.
21+
// You may obtain a copy of the License at
22+
//
23+
// http://www.apache.org/licenses/LICENSE-2.0
24+
//
25+
// Unless required by applicable law or agreed to in writing, software
26+
// distributed under the License is distributed on an "AS IS" BASIS,
27+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
28+
// See the License for the specific language governing permissions and
29+
// limitations under the License.
30+
//
31+
832

933
import Foundation
1034

0 commit comments

Comments
 (0)