Git Product home page Git Product logo

Comments (6)

carsonxu avatar carsonxu commented on June 14, 2024

audio怎么生成的?

from cos-nodejs-sdk-v5.

isNeilLin avatar isNeilLin commented on June 14, 2024

postman本地上传的。上传的格式是formdata @carsonxu

from cos-nodejs-sdk-v5.

isNeilLin avatar isNeilLin commented on June 14, 2024

每次都是上传到 precent 0.99就报错了

{ loaded: 11599872,
  total: 15289568,
  speed: 10622593.4,
  percent: 0.75 }
{ loaded: 15288862,
  total: 15289568,
  speed: 3670636.81,
  percent: 0.99 }
{ loaded: 15288862, total: 15289568, speed: 0, percent: 0.99 }

from cos-nodejs-sdk-v5.

isNeilLin avatar isNeilLin commented on June 14, 2024

audio的readable为true

PassThrough {
  _readableState:
   ReadableState {
     objectMode: false,
     highWaterMark: 16384,
     buffer: BufferList { head: [Object], tail: [Object], length: 1 },
     length: 15288862,
     pipes: null,
     pipesCount: 0,
     flowing: null,
     ended: true,
     endEmitted: false,
     reading: false,
     sync: false,
     needReadable: false,
     emittedReadable: true,
     readableListening: false,
     resumeScheduled: false,
     destroyed: false,
     defaultEncoding: 'utf8',
     awaitDrain: 0,
     readingMore: false,
     decoder: null,
     encoding: null },
  readable: true,
  domain: null,
  _events: { end: { [Function: bound onceWrapper] listener: [Function: onend] } },
  _eventsCount: 1,
  _maxListeners: undefined,
  _writableState:
   WritableState {
     objectMode: false,
     highWaterMark: 16384,
     finalCalled: false,
     needDrain: false,
     ending: true,
     ended: true,
     finished: true,
     destroyed: false,
     decodeStrings: true,
     defaultEncoding: 'utf8',
     length: 0,
     writing: false,
     corked: 0,
     sync: false,
     bufferProcessing: false,
     onwrite: [Function: bound onwrite],
     writecb: null,
     writelen: 0,
     bufferedRequest: null,
     lastBufferedRequest: null,
     pendingcb: 0,
     prefinished: true,
     errorEmitted: false,
     bufferedRequestCount: 0,
     corkedRequestsFree:
      { next: null,
        entry: null,
        finish: [Function: bound onCorkedFinish] } },
  writable: false,
  allowHalfOpen: true,
  _transformState:
   TransformState {
     afterTransform: [Function],
     needTransform: false,
     transforming: false,
     writecb: null,
     writechunk: null,
     writeencoding: 'buffer' },
  name: '许巍 - 在别处 (Live).mp3',
  mimetype: 'audio/mpeg',
  encoding: '7bit' }

from cos-nodejs-sdk-v5.

isNeilLin avatar isNeilLin commented on June 14, 2024

@carsonxu 可以了。PassThrough转换流不行,用ReadStream可以了

from cos-nodejs-sdk-v5.

carsonxu avatar carsonxu commented on June 14, 2024

ok

from cos-nodejs-sdk-v5.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.